diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:22:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 20:22:03 +0000 |
commit | ffccd5b2b05243e7976db80f90f453dccfae9886 (patch) | |
tree | 39a43152d27f7390d8f7a6fb276fa6887f87c6e8 /misc/syntax/properties.syntax | |
parent | Initial commit. (diff) | |
download | mc-ffccd5b2b05243e7976db80f90f453dccfae9886.tar.xz mc-ffccd5b2b05243e7976db80f90f453dccfae9886.zip |
Adding upstream version 3:4.8.30.upstream/3%4.8.30
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'misc/syntax/properties.syntax')
-rw-r--r-- | misc/syntax/properties.syntax | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/misc/syntax/properties.syntax b/misc/syntax/properties.syntax new file mode 100644 index 0000000..d62fb9a --- /dev/null +++ b/misc/syntax/properties.syntax @@ -0,0 +1,35 @@ +# Java properties file syntax highlighting +# Author: Tomas Horsky <tomas@thorsky.info> +# +# http://java.sun.com/j2se/1.4.2/docs/api/java/util/Properties.html#load(java.io.InputStream) +# - Does not support escapes in keys: \ , \=, \: +# - Additionally highlights numbers, HTML color codes (#AABBCC), some sort of "variable references" (${ref.to.other.key}), and more + +context default lightgray +# Keys + keyword linestart \[\s\t\]\{"$%&'()\*\+,-./0123456789;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\}\[!"#$%&'()\*\+,-./0123456789;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\] yellow + keyword = brightcyan + keyword : brightcyan +# Value continuation (first line) + keyword \\\n yellow + keyword ${*} brightgreen + keyword \\u\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\} magenta + keyword whole \{-0123456789\}\[0123456789\] brightcyan + keyword whole #\{0123456789ABCDEFabcdef\}\[0123456789ABCDEFabcdef\] green + keyword whole true white + keyword whole false white + +# Value continuation (rest of the lines) +context exclusive \\\n \n lightgray + keyword linestart \{\s\t\}\[\s\t\] lightgray black + keyword \\\n yellow + keyword ${*} brightgreen + keyword \\u\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\} magenta + keyword whole \{-0123456789\}\[0123456789\] brightcyan + keyword whole #\{0123456789ABCDEFabcdef\}\[0123456789ABCDEFabcdef\] green + +context linestart # \n brown + spellcheck + +context linestart ! \n brown + spellcheck |