summaryrefslogtreecommitdiff
path: root/share/tinykate/syntax/sgml.xml
Unidiff
Diffstat (limited to 'share/tinykate/syntax/sgml.xml') (more/less context) (ignore whitespace changes)
-rw-r--r--share/tinykate/syntax/sgml.xml47
1 files changed, 47 insertions, 0 deletions
diff --git a/share/tinykate/syntax/sgml.xml b/share/tinykate/syntax/sgml.xml
new file mode 100644
index 0000000..8dbab28
--- a/dev/null
+++ b/share/tinykate/syntax/sgml.xml
@@ -0,0 +1,47 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE language SYSTEM "language.dtd">
3<language name="SGML" version="1.00" kateversion="2.0" section="Markup" extensions="*.sgml" mimetype="text/sgml">
4 <highlighting>
5 <contexts>
6 <context attribute="0" lineEndContext="#stay">
7 <StringDetect attribute="Comment" context="4" String="&lt;!--"/>
8 <RegExpr attribute="1" context="1" String="&lt;\s*\/?\s*[a-zA-Z_:][a-zA-Z0-9._:-]*" />
9 </context>
10
11 <context attribute="2" lineEndContext="#stay">
12 <Detect2Chars attribute="1" context="#push" char="/" char1="&gt;" />
13 <DetectChar attribute="1" context="#push" char="&gt;" />
14 <RegExpr attribute="0" context="2" String="\s*=\s*" />
15 </context>
16
17 <context attribute="3" lineEndContext="#stay">
18 <RegExpr attribute="3" context="#push" String="[A-Za-z0-9.-]*" />
19 <DetectChar attribute="3" context="3" char="&quot;" />
20 </context>
21
22 <context attribute="3" lineEndContext="#stay">
23 <DetectChar attribute="3" context="#pop#pop" char="&quot;" />
24 </context>
25
26 <context attribute="Comment" lineEndContext="#stay">
27 <String---Detect attribute="Comment" context="4" String="&lt;!--"/>
28 <StringDetect attribute="Comment" context="#pop" String="--&gt;"/>
29 </context>
30
31 </contexts>
32 <itemDatas>
33 <itemData name="Normal Text" defStyleNum="dsNormal"/>
34 <itemData name="Keyword" defStyleNum="dsKeyword"/>
35 <itemData name="Identifier" defStyleNum="dsOthers"/>
36 <itemData name="Types" defStyleNum="dsDataType"/>
37 <itemData name="String" defStyleNum="dsString"/>
38 <itemData name="Comment" defStyleNum="dsComment"/>
39 </itemDatas>
40 </highlighting>
41 <general>
42 <comments>
43 <comment name="multiLine" start="&lt;!--" end="//--&gt;" />
44 </comments>
45 <keywords casesensitive="0" />
46 </general>
47</language>