File: java-properties.xml

package info (click to toggle)
kf6-syntax-highlighting 6.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 49,060 kB
  • sloc: xml: 203,100; cpp: 12,878; python: 3,055; sh: 965; perl: 814; ruby: 494; pascal: 393; javascript: 161; php: 150; jsp: 132; lisp: 131; haskell: 124; ada: 119; ansic: 107; makefile: 96; f90: 94; ml: 85; cobol: 81; yacc: 71; csh: 62; exp: 61; erlang: 54; sql: 51; java: 47; sed: 45; objc: 37; tcl: 36; awk: 31; asm: 30; fortran: 18; cs: 10
file content (42 lines) | stat: -rw-r--r-- 2,264 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language>
<language name="Java Properties" version="6" 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">
          <LineContinue char="=" attribute="Separator" column="0"/>
          <LineContinue char=":" attribute="Separator" 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" />
      <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>