https://github.com/vito/tree-sitter-bass
https://github.com/vito/tree-sitter-bass
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/vito/tree-sitter-bass
- Owner: vito
- License: mit
- Created: 2022-09-07T01:44:08.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-03T13:48:07.000Z (about 2 years ago)
- Last Synced: 2025-01-25T19:11:27.979Z (over 1 year ago)
- Language: Scheme
- Size: 136 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-bass
[](https://github.com/vito/tree-sitter-bass/actions/workflows/ci.yml)
[](https://discord.gg/w7nTvsVJhm)
[Bass](https://bass-lang.org/) grammar for [Tree-sitter](https://tree-sitter.github.io).
## Generating `highlights.scm`
Prerequisites: `go` and `make`
```sh
make
```
This will generate the following files:
- `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.
[Neovim]: https://github.com/neovim/neovim
[Helix]: https://github.com/helix-editor/helix