blob: 7c97477577b306ea530e284e925b605172b86174 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE language SYSTEM "language.dtd"[
<!ENTITY nmtoken "[\-\w\d\.:_]+">
<!ENTITY entref "(#[0-9]+|#[xX][0-9A-Fa-f]+|&nmtoken;);">
]>
<language name="DTD" version="1.02" kateversion="2.4" section="Markup" extensions="*.dtd" mimetype="application/xml-dtd" author="Andriy Lesyuk ([email protected])" license="LGPL">
<highlighting>
<list name="Category">
<item>EMPTY</item>
<item>ANY</item>
<item>CDATA</item>
<item>ID</item>
<item>IDREF</item>
<item>IDREFS</item>
<item>NMTOKEN</item>
<item>NMTOKENS</item>
<item>ENTITY</item>
<item>ENTITIES</item>
<item>NOTATION</item>
<item>PUBLIC</item>
<item>SYSTEM</item>
<item>NDATA</item>
</list>
<list name="Keywords">
<item>#PCDATA</item>
<item>#REQUIRED</item>
<item>#IMPLIED</item>
<item>#FIXED</item>
</list>
<contexts>
<context name="Normal" attribute="Normal" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" />
<StringDetect attribute="Processing Instruction" context="PI" String="<?xml" beginRegion="pi" />
<StringDetect attribute="Declaration" context="Declaration" String="<!ELEMENT" beginRegion="declaration" />
<StringDetect attribute="Declaration" context="Declaration" String="<!ATTLIST" beginRegion="declaration" />
<StringDetect attribute="Declaration" context="Declaration" String="<!NOTATION" beginRegion="declaration" />
<StringDetect attribute="Declaration" context="Declaration" String="<!ENTITY" beginRegion="declaration" />
<DetectIdentifier />
</context>
<context name="Comment" attribute="Comment" lineEndContext="#stay">
<DetectSpaces />
<StringDetect attribute="Comment" context="#pop" String="-->" endRegion="comment" />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
<context name="PI" attribute="Other" lineEndContext="#stay">
<Detect2Chars attribute="Processing Instruction" context="#pop" char="?" char1=">" endRegion="pi" />
</context>
<context name="Declaration" attribute="Other" lineEndContext="#stay">
<StringDetect attribute="Comment" context="Comment" String="<!--" beginRegion="comment" />
<Detect2Chars attribute="Comment" context="InlineComment" char="-" char1="-" />
<DetectChar attribute="Declaration" context="#pop" char=">" endRegion="declaration" />
<DetectChar attribute="String" context="String" char=""" />
<RegExpr attribute="Declaration" context="#stay" String="(-|O)\s(-|O)" />
<AnyChar attribute="Delimiter" context="#stay" String="(|)," />
<RegExpr attribute="Entity" context="#stay" String="(%|&)&entref;" />
<AnyChar attribute="Symbol" context="#stay" String="?*+-&" />
<RegExpr attribute="Local" context="#stay" String="%\s" />
<keyword attribute="Keyword" context="#stay" String="Category" />
<keyword attribute="Keyword" context="#stay" String="Keywords" />
<RegExpr attribute="Name" context="#stay" String="\b&nmtoken;\b" />
</context>
<context name="String" attribute="String" lineEndContext="#stay">
<DetectSpaces />
<DetectChar attribute="String" context="#pop" char=""" />
<RegExpr attribute="Entity" context="#stay" String="%&nmtoken;;" />
</context>
<context name="InlineComment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="-" />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
</contexts>
<itemDatas>
<itemData name="Normal" defStyleNum="dsNormal" />
<itemData name="Other" defStyleNum="dsNormal" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="Processing Instruction" defStyleNum="dsKeyword" spellChecking="false" />
<itemData name="Declaration" defStyleNum="dsDataType" bold="1" spellChecking="false" />
<itemData name="Name" defStyleNum="dsFunction" spellChecking="false" />
<itemData name="Delimiter" defStyleNum="dsDecVal" spellChecking="false" />
<itemData name="Symbol" defStyleNum="dsFloat" bold="1" spellChecking="false" />
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false" />
<itemData name="String" defStyleNum="dsString" spellChecking="false" />
<itemData name="Entity" defStyleNum="dsDecVal" spellChecking="false" />
<itemData name="Local" defStyleNum="dsDecVal" bold="1" spellChecking="false" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="multiLine" start="<!--" end="-->" />
</comments>
</general>
</language>
|