properties.syntax 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Java properties file syntax highlighting
  2. # Author: Tomas Horsky <tomas@thorsky.info>
  3. #
  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
  7. context default lightgray
  8. # Keys
  9. keyword linestart \[\s\t\]\{"$%&'()\*\+,-./0123456789;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\}\[!"#$%&'()\*\+,-./0123456789;<>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\] yellow
  10. keyword = brightcyan
  11. keyword : brightcyan
  12. # Value continuation (first line)
  13. keyword \\\n yellow
  14. keyword ${*} brightgreen
  15. keyword \\u\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\} magenta
  16. keyword whole \{-0123456789\}\[0123456789\] brightcyan
  17. keyword whole #\{0123456789ABCDEFabcdef\}\[0123456789ABCDEFabcdef\] green
  18. keyword whole true white
  19. keyword whole false white
  20. # Value continuation (rest of the lines)
  21. context exclusive \\\n \n lightgray
  22. keyword linestart \{\s\t\}\[\s\t\] lightgray black
  23. keyword \\\n yellow
  24. keyword ${*} brightgreen
  25. keyword \\u\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\} magenta
  26. keyword whole \{-0123456789\}\[0123456789\] brightcyan
  27. keyword whole #\{0123456789ABCDEFabcdef\}\[0123456789ABCDEFabcdef\] green
  28. context linestart # \n brown
  29. spellcheck
  30. context linestart ! \n brown
  31. spellcheck