ikatyang / tree-sitter-yaml

YAML grammar for tree-sitter
https://ikatyang.github.io/tree-sitter-yaml/
MIT License
94 stars 38 forks source link

Break anchor/alias name from `&`/`*` symbols #23

Closed stsewd closed 3 years ago

stsewd commented 3 years ago

Hi, currently the anchors and aliases are parsed like (anchor) and (alias) would be great if they could be parsed as (anchor "&" (name)) and (alias "*" (name)) instead. So the name itselft can be captured.

ref https://github.com/nvim-treesitter/nvim-treesitter/pull/1172

stsewd commented 3 years ago

Thanks!