nvim-treesitter/queries/dot/highlights.scm
2022-09-26 13:47:12 +01:00

56 lines
515 B
Scheme

(identifier) @type
[
"strict"
"graph"
"digraph"
"subgraph"
"node"
"edge"
] @keyword
(string_literal) @string
(number_literal) @number
[
(edgeop)
(operator)
] @operator
[
","
";"
] @punctuation.delimiter
[
"{"
"}"
"["
"]"
"<"
">"
] @punctuation.bracket
(subgraph
id: (id
(identifier) @namespace)
)
(attribute
name: (id
(identifier) @field)
)
(attribute
value: (id
(identifier) @constant)
)
[
(comment)
(preproc)
] @comment
(comment) @spell
(ERROR) @error