1 # Java properties file syntax highlighting
2 # Author: Tomas Horsky <tomas@thorsky.info>
4 # http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html#load(java.io.InputStream)
5 # - Does not support escapes in keys: \ , \=, \:
6 # - Additionally highlights numbers, HTML color codes (#AABBCC), some sort of "variable references" (${ref.to.other.key}), and more
8 context default lightgray
10 keyword linestart \[\s\t\]\{"$%&'()\*\+,-./0123456789;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\}\[!"#$%&'()\*\+,-./0123456789;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\] cyan
13 # Value continuation (first line)
16 keyword ${*} brightgreen
17 keyword \\u\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\} magenta
18 keyword whole \{-0123456789\}\[0123456789\] brightcyan
19 keyword whole #\{0123456789ABCDEFabcdef\}\[0123456789ABCDEFabcdef\] green
21 keyword whole true white
22 keyword whole false white
24 # Value continuation (rest of the lines)
25 context exclusive \\\n \n lightgray
26 keyword linestart \{\s\t\}\[\s\t\] lightgray black
29 keyword ${*} brightgreen
30 keyword \\u\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\} magenta
31 keyword whole \{-0123456789\}\[0123456789\] brightcyan
32 keyword whole #\{0123456789ABCDEFabcdef\}\[0123456789ABCDEFabcdef\] green
34 context linestart # \n brown
37 context linestart ! \n brown