Debian Codegraph @

data/syntax/sgml.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language>
3 <language name="SGML" version="5" kateversion="5.0" section="Markup" extensions="*.sgml" mimetype="text/sgml">
4 <highlighting>
5 <contexts>
6 <context attribute="Normal Text" lineEndContext="#stay" name="Normal Text" >
7 <StringDetect attribute="Comment" context="Comment" String="&lt;!--" beginRegion="Comment"/>
8 <RegExpr attribute="Tag" context="Attribute" String="&lt;\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
9 </context>
10
11 <context attribute="Attribute Name" lineEndContext="#stay" name="Attribute" >
12 <Detect2Chars attribute="Tag" context="#pop" char="/" char1="&gt;" />
13 <DetectChar attribute="Tag" context="#pop" char="&gt;" />
14 <RegExpr attribute="Normal Text" context="Value" String="\s*=\s*" />
15 </context>
16
17 <context attribute="Attribute Value" lineEndContext="#stay" name="Value" >
18 <Detect2Chars attribute="Tag" context="#pop#pop" char="/" char1="&gt;" />
19 <DetectChar attribute="Tag" context="#pop#pop" char="&gt;" />
20 <DetectChar attribute="Attribute Value" context="Value 2" char="&quot;" />
21 </context>
22
23 <context attribute="Attribute Value" lineEndContext="#stay" name="Value 2" >
24 <DetectChar attribute="Attribute Value" context="#pop#pop" char="&quot;" />
25 </context>
26
27 <context attribute="Comment" lineEndContext="#stay" name="Comment" >
28 <DetectSpaces />
29 <StringDetect attribute="Comment" context="#pop" String="--&gt;" endRegion="Comment"/>
30 <IncludeRules context="##Comments"/>
31 </context>
32
33 </contexts>
34 <itemDatas>
35 <itemData name="Normal Text" defStyleNum="dsNormal"/>
36 <itemData name="Tag" defStyleNum="dsKeyword" spellChecking="false"/>
37 <itemData name="Attribute Name" defStyleNum="dsOthers" spellChecking="false"/>
38 <itemData name="Attribute Value" defStyleNum="dsDataType" spellChecking="false"/>
39 <itemData name="Comment" defStyleNum="dsComment"/>
40 </itemDatas>
41 </highlighting>
42 <general>
43 <comments>
44 <comment name="multiLine" start="&lt;!--" end="--&gt;" region="Comment" />
45 </comments>
46 <keywords casesensitive="0" />
47 </general>
48 </language>