tree-sitter-bass
Bass grammar for Tree-sitter.
highlights.scm
Generating Prerequisites: go
and make
make
This will generate the following files:
queries/vim/highlights.scm
— suitable for Neovim highlightingqueries/helix/highlights.scm
— suitable for Helix highlighting
A Quick Note on Precedence
tree-sitter test
, Helix, and Neovim disagree on the precedence for
overlapping queries.
With tree-sitter test
and Helix, the first matching query takes precedence,
whereas in Neovim the last matching query supersedes the ones before it.
To handle this the query template just conditionally switches the order of the queries.