Skip to content

nwhetsell/tree-sitter-lilypond

Repository files navigation

tree-sitter-lilypond

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/; done

Syntax Highlighting

This 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:

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.

About

LilyPond and LilyPond Scheme grammars for Tree-sitter

Topics

Resources

License

Stars

Watchers

Forks

Contributors