tree-sitter-d2/queries/highlights.scm

29 lines
547 B
Scheme

;-------------------------------------------------------------------------------
(identifier) @variable
(attr_key) @keyword
;-------------------------------------------------------------------------------
(string) @string
(label) @string
(attr_value) @string
;-------------------------------------------------------------------------------
(arrow) @operator
[
(dot)
":"
";"
] @punctuation.delimiter
[
"{"
"}"
] @punctuation.bracket
;-------------------------------------------------------------------------------
(ERROR) @error