2022-12-07 18:52:19 +03:00
|
|
|
; Special (treesitter don't overwrite)
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(ERROR) @error
|
|
|
|
(invalid (_) @error)
|
2022-12-07 11:58:45 +03:00
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
2022-12-07 23:14:25 +03:00
|
|
|
(shape_key) @variable
|
2022-12-07 11:58:45 +03:00
|
|
|
(attr_key) @keyword
|
|
|
|
|
2022-12-07 12:09:27 +03:00
|
|
|
; Literals
|
2022-12-07 11:58:45 +03:00
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(string) @string
|
|
|
|
(label) @string
|
|
|
|
(attr_value) @string
|
|
|
|
|
2022-12-07 12:09:27 +03:00
|
|
|
; Comments
|
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(line_comment) @comment.line
|
|
|
|
|
|
|
|
; Punctiation
|
2022-12-07 11:58:45 +03:00
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(arrow) @operator
|
|
|
|
|
|
|
|
[
|
|
|
|
":"
|
|
|
|
";"
|
|
|
|
] @punctuation.delimiter
|
|
|
|
|
|
|
|
[
|
|
|
|
"{"
|
|
|
|
"}"
|
|
|
|
] @punctuation.bracket
|
|
|
|
|
2022-12-07 18:52:19 +03:00
|
|
|
; Special (nvim-treesitter overwrite previous rules)
|
2022-12-07 11:58:45 +03:00
|
|
|
;-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
(ERROR) @error
|
2022-12-07 18:52:19 +03:00
|
|
|
(invalid (_) @error)
|