Debian Codegraph @

data/syntax/java-properties.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language>
3 <language name="Java Properties" version="5" kateversion="5.0" section="Other" extensions="*.properties" author="Matthias Böhm (MatthiasBoehm87 _at_ gmail.com)" license="MIT">
4 <highlighting>
5 <contexts>
6 <context name="key" attribute="Key" lineEndContext="#stay">
7 <RegExpr String="^[=:]$" attribute="Separator" context="key" column="0"/>
8 <AnyChar String="=:" attribute="Separator" context="value" column="0"/>
9 <AnyChar String="#!" attribute="Comment" context="comment" firstNonSpace="true"/>
10 <RegExpr String="(?:[^=:\s\\]|\\.)*\s*(?==|:)" attribute="Key" context="separator"/>
11 <RegExpr String="(?:[^=:\s\\]|\\.)+\s+(?=\S)" attribute="Key" context="value"/>
12 </context>
13 <context name="separator" attribute="Key" lineEndContext="#pop" >
14 <LineContinue char="=" attribute="Separator" context="#pop" />
15 <LineContinue char=":" attribute="Separator" context="#pop" />
16 <AnyChar String="=:" attribute="Separator" context="#pop!value"/>
17 </context>
18 <context name="value" attribute="Value" lineEndContext="#stay">
19 <RegExpr String="(?:[^\\]|\\.)*$" attribute="Value" context="#pop!continueWithKey"/>
20 <RegExpr String="(?:[^\\]|\\.)*\\$" attribute="Value" context="#pop!continueWithValue"/>
21 </context>
22 <context name="continueWithKey" attribute="Key" lineEndContext="#pop!key" />
23 <context name="continueWithValue" attribute="Value" lineEndContext="#pop!value" />
24 <context name="comment" attribute="Comment" lineEndContext="#pop">
25 <DetectSpaces />
26 <IncludeRules context="##Comments" />
27 </context>
28 </contexts>
29 <itemDatas>
30 <itemData name="Key" spellChecking="false" defStyleNum="dsOthers"/>
31 <itemData name="Value" spellChecking="false" defStyleNum="dsString"/>
32 <itemData name="Comment" spellChecking="true" defStyleNum="dsComment"/>
33 <itemData name="Separator" spellChecking="false" defStyleNum="dsVariable"/>
34 </itemDatas>
35 </highlighting>
36 <general>
37 <comments>
38 <comment name="singleLine" start="#"/>
39 </comments>
40 </general>
41 </language>