tree-sitter-d2/queries/highlights.scm

48 lines
944 B
Scheme
Raw Normal View History

2022-12-07 11:58:45 +03:00
;-------------------------------------------------------------------------------
2022-12-08 01:15:09 +03:00
(container_key) @constant
2022-12-07 23:14:25 +03:00
(shape_key) @variable
2022-12-08 01:15:09 +03:00
(attr_key) @property
(reserved) @error
2022-12-07 11:58:45 +03:00
2022-12-07 12:09:27 +03:00
; Literals
2022-12-07 11:58:45 +03:00
;-------------------------------------------------------------------------------
2022-12-09 19:05:04 +03:00
(language) @type.qualifier
(container_key (string) @string)
2022-12-08 01:15:09 +03:00
(shape_key (string) @string)
2022-12-09 19:05:04 +03:00
(label) @string.special
2022-12-07 11:58:45 +03:00
(attr_value) @string
2022-12-09 19:05:04 +03:00
(integer) @number
(float) @float
(boolean) @boolean
2022-12-07 11:58:45 +03:00
2022-12-07 12:09:27 +03:00
; Comments
;-------------------------------------------------------------------------------
(line_comment) @comment.line
; Punctiation
2022-12-07 11:58:45 +03:00
;-------------------------------------------------------------------------------
(arrow) @operator
[
2022-12-08 01:15:09 +03:00
(dot)
2022-12-07 11:58:45 +03:00
":"
";"
] @punctuation.delimiter
[
"{"
"}"
2022-12-09 19:05:04 +03:00
"|"
"|`"
"`|"
2022-12-07 11:58:45 +03:00
] @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