summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2021-04-09 19:36:19 -0500
committerGitHub <noreply@github.com>2021-04-09 19:36:19 -0500
commitc3603ddad1caea9ead043d84941fe43cc41faa7f (patch)
treef78dbfeed8c3d22425d73c89d2588a88d2f1b80e
parentde4fbe8e083518161b687c5d9f4d500367c8968a (diff)
Yaml: update locals (#1172)
The parser doesn't break the symbols in `*` `&` from the name of anchors/aliases. So go to definition doesn't work, but highlight of usage does :D Test with ```yaml Defaults: &defaults Company: foo Item: 123 Computer: <<: *defaults <<: *defaults Price: 3000 ``` Ref https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
-rw-r--r--queries/yaml/locals.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/queries/yaml/locals.scm b/queries/yaml/locals.scm
index 3eac2a1e..6a74fb47 100644
--- a/queries/yaml/locals.scm
+++ b/queries/yaml/locals.scm
@@ -1 +1,4 @@
(document) @scope
+
+(anchor) @definition
+(alias) @reference