Debian Codegraph @

data/syntax/texinfo.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language>
3 <language name="Texinfo" extensions="*.texi" section="Markup" mimetype="application/x-texinfo" author="Daniel Franke ([email protected])" license="LGPL" version="3" kateversion="5.0">
4
5 <highlighting>
6 <!--
7 In TEXINFO, commands start with "@" optionally followed by a
8 command argument embraced by "{}", as in "@item" or "@emph{foo bar}".
9
10 Some special commands embrace a region, e.g. "@menu" and "@end menu",
11 these regions may be fold (beginRegion="foldingRegion").
12
13 Nodes to NOT end with "@end node", but a "@node" ends at the beginning
14 of the next "@node".
15 -->
16 <contexts>
17 <context name="Normal Text" attribute="Normal Text" lineEndContext="#stay">
18 <RegExpr attribute="Comment" context="singleLineComment" String="@c(?:omment)?\b" />
19 <RegExpr attribute="Comment" context="multiLineComment" String="@ignore\b" beginRegion="ignore" />
20 <RegExpr attribute="Command" context="nodeFolding" String="@node\b" beginRegion="node" />
21
22 <RegExpr attribute="Command" context="folding" beginRegion="foldingRegion"
23 String="@(menu|smallexample|table|multitable)\b"/>
24
25 <RegExpr attribute="Command" context="#stay" String="@[\w]+(\{([\w]+[\s]*)+\})?" />
26 </context>
27
28 <context name="singleLineComment" attribute="Comment" lineEndContext="#pop">
29 <DetectSpaces />
30 <IncludeRules context="##Comments" />
31 </context>
32
33 <context name="multiLineComment" attribute="Comment" lineEndContext="#stay">
34 <DetectSpaces />
35 <StringDetect attribute="Comment" context="#pop" String="@end ignore" endRegion="ignore" />
36 <IncludeRules context="##Comments" />
37 </context>
38
39 <context name="nodeFolding" attribute="Normal Text" lineEndContext="#stay">
40 <RegExpr attribute="Command" context="#pop" String="@node\b" endRegion="node" lookAhead="true" />
41 <IncludeRules context="Normal Text" />
42 </context>
43
44 <context name="folding" attribute="Normal Text" lineEndContext="#stay">
45 <RegExpr attribute="Command" context="#pop" endRegion="foldingRegion"
46 String="@end (menu|smallexample|table|multitable)\b" />
47 <IncludeRules context="Normal Text" />
48 </context>
49 </contexts>
50
51 <itemDatas>
52 <itemData name="Normal Text" defStyleNum="dsNormal" />
53 <itemData name="Comment" defStyleNum="dsComment" />
54 <itemData name="Command" defStyleNum="dsFunction" />
55 </itemDatas>
56 </highlighting>
57
58 <general>
59 <comments>
60 <comment name="singleLine" start="@c " />
61 <comment name="multiLine" start="@ignore " end="@end ignore" region="ignore" />
62 </comments>
63 </general>
64
65 </language>
66 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->