Skip to content

amaanq/tree-sitter-bass

 
 

Repository files navigation

tree-sitter-bass

Build Status Discord

Bass grammar for Tree-sitter.

Generating highlights.scm

Prerequisites: go and make

make

This will generate the following files:

  • queries/highlights.scm — a set of highlight queries suitable for tree-sitter test
  • queries/vim/highlights.scm — suitable for Neovim highlighting
  • queries/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.

About

Bass grammar for tree-sitter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scheme 43.6%
  • Go 14.5%
  • JavaScript 12.2%
  • Rust 10.9%
  • Nix 4.3%
  • Swift 3.7%
  • Other 10.8%