nvim-treesitter/queries/yaml/locals.scm
Santos Gallegos fe4e4aa286
yaml: improve highlights and locals (#946)
- 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-10-26 22:47:59 -05:00

8 lines
98 B
Scheme

[
(stream)
(document)
(block_node)
] @scope
(anchor_name) @definition
(alias_name) @reference