highlights.scm 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. (string) @string
  2. (escape_sequence) @string.escape
  3. (capture
  4. (identifier) @type)
  5. (predicate
  6. name: (identifier) @function.call)
  7. (named_node
  8. name: (identifier) @variable)
  9. (missing_node
  10. name: (identifier) @variable)
  11. (field_definition
  12. name: (identifier) @variable.member)
  13. (negated_field
  14. "!" @operator
  15. (identifier) @property)
  16. (comment) @comment @spell
  17. (quantifier) @operator
  18. (predicate_type) @punctuation.special
  19. "." @operator
  20. [
  21. "["
  22. "]"
  23. "("
  24. ")"
  25. ] @punctuation.bracket
  26. [
  27. ":"
  28. "/"
  29. ] @punctuation.delimiter
  30. [
  31. "@"
  32. "#"
  33. ] @punctuation.special
  34. (predicate
  35. "." @punctuation.special)
  36. "_" @character.special
  37. "MISSING" @keyword
  38. ((parameters
  39. (identifier) @number)
  40. (#match? @number "^[-+]?[0-9]+(.[0-9]+)?$"))
  41. ((program
  42. .
  43. (comment)*
  44. .
  45. (comment) @keyword.import @nospell)
  46. (#lua-match? @keyword.import "^;+ *inherits *:"))
  47. ((program
  48. .
  49. (comment)*
  50. .
  51. (comment) @keyword.directive @nospell)
  52. (#lua-match? @keyword.directive "^;+ *extends *$"))
  53. ((comment) @keyword.directive @nospell
  54. (#lua-match? @keyword.directive "^;+%s*format%-ignore%s*$"))
  55. ((predicate
  56. name: (identifier) @_name
  57. parameters: (parameters
  58. .
  59. (capture)?
  60. .
  61. (identifier) @property))
  62. (#eq? @_name "set"))
  63. ((predicate
  64. name: (identifier) @_name
  65. parameters: (parameters
  66. (string
  67. "\"" @string
  68. "\"" @string) @string.regexp))
  69. (#any-of? @_name "match" "not-match" "vim-match" "not-vim-match" "lua-match" "not-lua-match"))
  70. ((predicate
  71. name: (identifier) @_name
  72. parameters: (parameters
  73. (string
  74. "\"" @string
  75. "\"" @string) @string.regexp
  76. .
  77. (string) .))
  78. (#any-of? @_name "gsub" "not-gsub"))