diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2021-04-09 19:36:19 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-09 19:36:19 -0500 |
| commit | c3603ddad1caea9ead043d84941fe43cc41faa7f (patch) | |
| tree | f78dbfeed8c3d22425d73c89d2588a88d2f1b80e | |
| parent | Update lockfile.json (diff) | |
| download | nvim-treesitter-c3603ddad1caea9ead043d84941fe43cc41faa7f.tar nvim-treesitter-c3603ddad1caea9ead043d84941fe43cc41faa7f.tar.gz nvim-treesitter-c3603ddad1caea9ead043d84941fe43cc41faa7f.tar.bz2 nvim-treesitter-c3603ddad1caea9ead043d84941fe43cc41faa7f.tar.lz nvim-treesitter-c3603ddad1caea9ead043d84941fe43cc41faa7f.tar.xz nvim-treesitter-c3603ddad1caea9ead043d84941fe43cc41faa7f.tar.zst nvim-treesitter-c3603ddad1caea9ead043d84941fe43cc41faa7f.zip | |
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.scm | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
