nvim-treesitter/queries/yaml/highlights.scm

30 lines
536 B
Scheme
Raw Normal View History

2020-12-16 09:59:59 +00:00
(block_mapping_pair key: (flow_node) @field)
(flow_pair key: (flow_node) @field) ; This one doesn't seem to work, no idea what's wrong with it.
(boolean_scalar) @boolean
(null_scalar) @constant.builtin
(double_quote_scalar) @string
(single_quote_scalar) @string
(escape_sequence) @string.escape
2020-12-16 09:59:59 +00:00
(integer_scalar) @number
(float_scalar) @number
(comment) @comment
(anchor) @type
(alias) @type
(tag) @type
(yaml_directive) @keyword
(ERROR) @error
[
","
"-"
":"
">"
"?"
"|"
] @punctuation.delimiter
[
"["
"]"
"{"
"}"
] @punctuation.bracket