json.syntax 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #
  2. # JSON syntax highlighting
  3. # for MC Editor/CoolEdit
  4. #
  5. # Author: Sergii Pylypenko <x.pelya.x@gmail.com>
  6. #
  7. context default
  8. #=========================
  9. # Constants
  10. keyword whole true brightgreen
  11. keyword whole false brightgreen
  12. keyword whole null brightgreen
  13. #=========================
  14. # Numbers
  15. keyword whole \[-\]\{0123456789\}\[0123456789\] brightgreen
  16. keyword whole \[-\]\{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\] brightgreen
  17. keyword whole \[-\]\{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen
  18. keyword whole \[-\]\{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen
  19. keyword whole \[-\]\{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen
  20. keyword whole \[-\]\{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen
  21. #=========================
  22. # Separators
  23. keyword { brightcyan
  24. keyword } brightcyan
  25. keyword [ brightcyan
  26. keyword ] brightcyan
  27. keyword , brightcyan
  28. keyword : brightcyan
  29. #=============================
  30. # Strings
  31. context " " green
  32. spellcheck
  33. keyword \\\{"\\/bfnrt\} brightgreen
  34. keyword \\u\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\}\{0123456789ABCDEFabcdef\} brightgreen