From c3603ddad1caea9ead043d84941fe43cc41faa7f Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Fri, 9 Apr 2021 19:36:19 -0500 Subject: 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 --- queries/yaml/locals.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/queries/yaml/locals.scm b/queries/yaml/locals.scm index 3eac2a1e6..6a74fb473 100644 --- a/queries/yaml/locals.scm +++ b/queries/yaml/locals.scm @@ -1 +1,4 @@ (document) @scope + +(anchor) @definition +(alias) @reference -- cgit v1.2.3-70-g09d2