tree-sitter-d2/queries/highlights.scm

37 lines
695 B
Scheme
Raw Normal View History

2022-12-07 11:58:45 +03:00
;-------------------------------------------------------------------------------
(identifier) @variable
(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
[
(dot)
":"
";"
] @punctuation.delimiter
[
"{"
"}"
] @punctuation.bracket
;-------------------------------------------------------------------------------
(ERROR) @error