ikatyang / tree-sitter-yaml

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

Wondering about handling of "on" keyword in strings #40

Open kasbah opened 1 year ago

kasbah commented 1 year ago

I switched to neovim-treesitter for yaml because I had hoped it would take care of this small annoyance I have with handling of on in e.g.

foo: the cat is on the mat

Where on goes bold:

image

Presumably because of on/off but in this case it's part of a string. If you quote the string then it's fine of course but in terms of yaml data there is no difference between quoted and unquoted here I think.