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