summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-04-18 16:51:03 -0500
committerGitHub <noreply@github.com>2021-04-18 21:51:03 +0000
commit574bd5ae37a5b460d99d10b0c315fbb3246bdc10 (patch)
treebefc644a91830e646bedfc00fde21714cdd2335a /queries
parent15f27cf3014f5f437c16f17e3da73f420f61432b (diff)
YAML: update queries (#1203)
Closes https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
Diffstat (limited to 'queries')
-rw-r--r--queries/yaml/highlights.scm8
-rw-r--r--queries/yaml/locals.scm4
2 files changed, 8 insertions, 4 deletions
diff --git a/queries/yaml/highlights.scm b/queries/yaml/highlights.scm
index 1517e913..818352bb 100644
--- a/queries/yaml/highlights.scm
+++ b/queries/yaml/highlights.scm
@@ -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
diff --git a/queries/yaml/locals.scm b/queries/yaml/locals.scm
index 6a74fb47..be91b5ca 100644
--- a/queries/yaml/locals.scm
+++ b/queries/yaml/locals.scm
@@ -1,4 +1,4 @@
(document) @scope
-(anchor) @definition
-(alias) @reference
+(anchor_name) @definition
+(alias_name) @reference