syntax.syntax 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Syntax highlighting rules for syntax highlighting rules
  2. # Use \[\] at the end of keywords to suppress their special meaning
  3. wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.\\[]{}
  4. context default
  5. # Invalid combinations, not highlighted
  6. keyword whole linestart\[\t\s\]whole
  7. keyword whole linestart\[\t\s\]wholeleft
  8. keyword whole linestart\[\t\s\]wholeright
  9. # Combinations below are valid
  10. keyword whole whole\[\t\s\]linestart brightcyan
  11. keyword whole wholeleft\[\t\s\]linestart brightcyan
  12. keyword whole wholeright\[\t\s\]linestart brightcyan
  13. keyword whole whole\[\] brightcyan
  14. keyword whole wholeleft\[\] brightcyan
  15. keyword whole wholeright\[\] brightcyan
  16. keyword whole linestart\[\] brightcyan
  17. keyword whole wholechars\[\t\s\]left brightcyan
  18. keyword whole wholechars\[\t\s\]right brightcyan
  19. keyword whole wholechars\[\] brightcyan
  20. keyword whole define\[\] brightcyan
  21. keyword whole spellcheck\[\] yellow
  22. keyword whole keyword\[\] yellow
  23. keyword whole context\[\t\s\]exclusive brightred
  24. keyword whole context\[\t\s\]default brightred
  25. keyword whole context\[\] brightred
  26. keyword whole caseinsensitive\[\] brightred
  27. keyword whole linestart file\[\] brightgreen
  28. keyword whole linestart include\[\] brightred
  29. keyword whole black black blue
  30. keyword whole red red
  31. keyword whole green green
  32. keyword whole brown brown
  33. keyword whole blue blue black
  34. keyword whole magenta magenta
  35. keyword whole cyan cyan
  36. keyword whole lightgray lightgray
  37. keyword whole gray gray black
  38. keyword whole brightred brightred
  39. keyword whole brightgreen brightgreen
  40. keyword whole yellow yellow
  41. keyword whole brightblue brightblue black
  42. keyword whole brightmagenta brightmagenta
  43. keyword whole brightcyan brightcyan
  44. keyword whole white white
  45. context linestart # \n brown
  46. spellcheck
  47. # Ideally we would have defined comments with "context linestart \[\s\]# ...",
  48. # but contexts can't start with a character class. So we define comments twice.
  49. context linestart \s\[\s\]# \n brown
  50. spellcheck