nvim-treesitter/queries/yaml/highlights.scm

30 lines
464 B
Scheme
Raw Normal View History

2020-12-16 22:00:25 +00:00
(block_mapping_pair key: (_) @field)
(flow_mapping (_ key: (_) @field))
2020-12-16 09:59:59 +00:00
(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