mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 00:10:04 -04:00
YAML: update queries (#1203)
Closes https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
This commit is contained in:
parent
15f27cf301
commit
574bd5ae37
5 changed files with 13 additions and 8 deletions
|
|
@ -8,11 +8,12 @@
|
|||
(integer_scalar) @number
|
||||
(float_scalar) @number
|
||||
(comment) @comment
|
||||
(anchor) @type
|
||||
(alias) @type
|
||||
(anchor_name) @type
|
||||
(alias_name) @type
|
||||
(tag) @type
|
||||
(yaml_directive) @keyword
|
||||
(ERROR) @error
|
||||
|
||||
[
|
||||
","
|
||||
"-"
|
||||
|
|
@ -21,9 +22,12 @@
|
|||
"?"
|
||||
"|"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
["*" "&"] @punctuation.special
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
(document) @scope
|
||||
|
||||
(anchor) @definition
|
||||
(alias) @reference
|
||||
(anchor_name) @definition
|
||||
(alias_name) @reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue