File: java-properties.xml

package info (click to toggle)
ksyntax-highlighting 5.116.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,640 kB
  • sloc: xml: 186,656; cpp: 12,164; python: 1,202; sh: 898; perl: 515; ruby: 406; pascal: 393; php: 149; javascript: 140; jsp: 132; lisp: 131; haskell: 124; ansic: 107; f90: 94; cobol: 81; makefile: 78; ml: 75; yacc: 71; csh: 62; erlang: 54; sql: 51; objc: 37; java: 32; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (41 lines) | stat: -rw-r--r-- 2,216 bytes parent folder | download
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language>
<language name="Java Properties" version="5" kateversion="5.0" section="Other" extensions="*.properties" author="Matthias Böhm (MatthiasBoehm87 _at_ gmail.com)" license="MIT">
  <highlighting>
    <contexts>
      <context name="key" attribute="Key" lineEndContext="#stay">
          <RegExpr String="^[=:]$" attribute="Separator" context="key" column="0"/>
          <AnyChar String="=:" attribute="Separator" context="value" column="0"/>
          <AnyChar String="#!" attribute="Comment" context="comment" firstNonSpace="true"/>
          <RegExpr String="(?:[^=:\s\\]|\\.)*\s*(?==|:)" attribute="Key" context="separator"/>
          <RegExpr String="(?:[^=:\s\\]|\\.)+\s+(?=\S)" attribute="Key" context="value"/>
      </context>
      <context name="separator" attribute="Key" lineEndContext="#pop" >
          <LineContinue char="=" attribute="Separator" context="#pop" />
          <LineContinue char=":" attribute="Separator" context="#pop" />
          <AnyChar String="=:" attribute="Separator" context="#pop!value"/>
      </context>
      <context name="value" attribute="Value" lineEndContext="#stay">
          <RegExpr String="(?:[^\\]|\\.)*$" attribute="Value" context="#pop!continueWithKey"/>
          <RegExpr String="(?:[^\\]|\\.)*\\$" attribute="Value" context="#pop!continueWithValue"/>
      </context>
      <context name="continueWithKey" attribute="Key" lineEndContext="#pop!key" />
      <context name="continueWithValue" attribute="Value" lineEndContext="#pop!value" />
      <context name="comment" attribute="Comment" lineEndContext="#pop">
          <DetectSpaces />
          <IncludeRules context="##Comments" />
      </context>
    </contexts>
    <itemDatas>
      <itemData name="Key" spellChecking="false" defStyleNum="dsOthers"/>
      <itemData name="Value" spellChecking="false" defStyleNum="dsString"/>
      <itemData name="Comment" spellChecking="true" defStyleNum="dsComment"/>
      <itemData name="Separator" spellChecking="false" defStyleNum="dsVariable"/>
    </itemDatas>
  </highlighting>
  <general>
    <comments>
      <comment name="singleLine" start="#"/>
    </comments>
  </general>
</language>