summaryrefslogtreecommitdiff
path: root/queries/yaml/locals.scm
AgeCommit message (Collapse)Author
2021-10-26yaml: improve highlights and locals (#946)Santos Gallegos
- More scopes - Highlight strings as strings - Recognize more keys/fields Improvements can be seen with this weird yaml: ```yaml { foo: bar } --- {a: [b, c], [d, e]: f} --- - { single line, a: b} - { multi line, a: b} --- "fooo": bar 'foo': bar one: two ```
2021-04-18YAML: update queries (#1203)Santos Gallegos
Closes https://github.com/nvim-treesitter/nvim-treesitter-refactor/issues/18
2021-04-09Yaml: update locals (#1172)Santos Gallegos
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
2021-02-10YAML: add localsSantos Gallegos
This is so incremental selection works