Files
mc-old/misc/syntax/properties.syntax
Yury V. Zaytsev 8cba5f6e51 doc: switch links to https://, update or remove dead links
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2025-01-31 10:12:32 +01:00

36 lines
1.6 KiB
YAML

# Java properties file syntax highlighting
# Author: Tomas Horsky <tomas@thorsky.info>
#
# https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/util/Properties.html#load(java.io.Reader)
# - 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