File: properties.syntax

package info (click to toggle)
mc 3%3A4.8.29-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,056 kB
  • sloc: ansic: 98,016; sh: 8,293; perl: 2,325; makefile: 1,458; python: 410; cs: 44; lisp: 44; sed: 16
file content (35 lines) | stat: -rw-r--r-- 1,634 bytes parent folder | download | duplicates (7)
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
# 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