tree-sitter-langs icon indicating copy to clipboard operation
tree-sitter-langs copied to clipboard

Add some way to override the existing queries bundled with the package

Open mohkale opened this issue 4 years ago • 1 comments

I recently upgraded tree-sitter-langs (after a few months) and I've noticed quite a lot of the syntax highlighting has been improved in places. However in some cases I also find it kind of overbearing.

For example in shell script mode command flags are highlighted as constants, variables are also properties, commands invocations are function calls, etc.

Screenshot_20211009_193524

While it would be easy enough to modify the queries bundled with this repo, there's no easy way to persist those changes into my emacs dotfiles without maintaining a fork of this project. I think it'd be nice if tree-sitter-langs had a local directory variable users can set and if a query is defined there then it uses that query instead of the one bundled with this repo. Thoughts?

mohkale avatar Oct 09 '21 18:10 mohkale

I think such a mechanism would be useful. I don't have time to work on in at the moment, though.

ubolonton avatar Jan 03 '22 09:01 ubolonton