YAML: update queries (#1203)

Closes https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
This commit is contained in:
Santos Gallegos 2021-04-18 16:51:03 -05:00 committed by GitHub
parent 15f27cf301
commit 574bd5ae37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 8 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
(document) @scope
(anchor) @definition
(alias) @reference
(anchor_name) @definition
(alias_name) @reference