Closed the-mikedavis closed 2 years ago
I'm welcome to these changes. But if I understand correctly the cli version is not actually specified in the config but rather something I have to update locally, right?
Currently yeah, it's not specifying in the repo so you need to update locally with however you installed tree-sitter-cli initially.
Most grammars I've seen add tree-sitter-cli as a devDependency and run it through npx tree-sitter
, like here in tree-sitter-rust. That way you can pin an exact version.
Ah ok, thanks. I'll probably add something like that later than.
The field is nice because it allows you to use the
!
operator in queries. So you could highlight a fenced code-block that doesn't declare a language with a default color when the info_string field doesn't exist:Also included is a bump to tree-sitter-cli 0.20.6. What do you think?