Debian Codegraph @

data/syntax/noweb.xml

raw
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE language>
3 <language name="noweb" version="5" kateversion="5.79" section="Sources" extensions="*.w;*.nw" author="Scott Collins ([email protected])">
4 <!--
5 #########################################################################
6 # First version added to repository was 0.4, added as 1.0 .
7 #
8 # Article about this highlighter:
9 # http://scottcollins.net/articles/Kate.html
10 #
11 # Indirect source file:
12 # http://scottcollins.net/articles/Kate.w
13 #
14 # Command used for extraction:
15 # $ notangle Kate.w -R"noweb.xml" > syntax/data/noweb.xml
16 #########################################################################
17 -->
18 <highlighting>
19 <contexts>
20 <context name="RawDocumentation" attribute="Prose" lineEndContext="#stay">
21 <RegExpr String="^&lt;&lt;.*&gt;&gt;=$" attribute="SectionName" context="CodeSection" beginRegion="CodeSection" column="0" />
22 <Detect2Chars char="@" char1="[" context="#stay" />
23 <Detect2Chars char="[" char1="[" attribute="Punctuation" context="CodeQuote" />
24 <IncludeRules context="##HTML" includeAttrib="true" />
25 </context>
26 <context name="CodeQuote" attribute="Code" lineEndContext="#stay">
27 <Detect2Chars char="@" char1="]" context="#stay" />
28 <RegExpr String="\]\](?!\])" minimal="true" attribute="Punctuation" context="#pop" />
29 <IncludeRules context="SectionNames" />
30 <IncludeRules context="##C++" includeAttrib="true" />
31 </context>
32 <context name="CodeSection" attribute="Code" lineEndContext="#stay">
33 <RegExpr String="^@$|^@(?=[\s%])" attribute="Punctuation" context="RawDocumentation" endRegion="CodeSection" column="0" />
34 <RegExpr String="^&lt;&lt;.*&gt;&gt;=$" context="RawDocumentation" lookAhead="true" endRegion="CodeSection" column="0" />
35 <IncludeRules context="SectionNames" />
36 <IncludeRules context="##C++" includeAttrib="true" />
37 </context>
38 <context name="SectionNames" attribute="Prose" lineEndContext="#stay">
39 <StringDetect String="@&lt;&lt;" context="#stay" />
40 <RegExpr String="&lt;&lt;.*[^@]&gt;&gt;(?!=)" minimal="true" attribute="SectionName" />
41 </context>
42 </contexts>
43 <itemDatas>
44 <itemData name="Prose" defStyleNum="dsNormal" />
45 <itemData name="Code" defStyleNum="dsNormal" />
46 <itemData name="Punctuation" defStyleNum="dsRegionMarker" bold="true" />
47 <itemData name="SectionName" defStyleNum="dsRegionMarker" italic="true" />
48 </itemDatas>
49 </highlighting>
50 <general>
51 <comments>
52 <comment name="multiLine" start="&lt;!--" end="--&gt;" />
53 </comments>
54 </general>
55 </language>
56