LilyPond and LilyPond Scheme grammars for Tree-sitter. The LilyPond Scheme grammar is based on https://github.com/6cdh/tree-sitter-scheme and Pygments.
To rebuild the grammars:
for folder in lilypond lilypond-scheme; do tree-sitter generate $folder/grammar.js --abi 14 && rm -fR $folder/src && mv src $folder/; doneThis repository includes syntax highlighting queries that may achieve a basic level of syntax highlighting in many text editors. However, text editors vary widely in how they use Tree-sitter for syntax highlighting. For example, here are highlight names for Booleans in a few text editors:
- Helix:
constant.builtin.boolean - Nova:
value.boolean - Sublime Text:
constant.language - Zed:
boolean
Because of this, while the syntax highlighting queries in this repository may be a start, you’ll probably have to write syntax highlighting queries specific to your text editor when using these grammars.