This is my attempt to learn more about treesitter and nvim-treesitter by writing a grammar for PlantUML source files.
tree-sitter-cli
is included in the package's dev requirements. If
tree-sitter
is not installed on your system, use
./node_modules/.bin/tree-sitter
instead.
After making changes to grammar.js
, run tree-sitter generate
to create the
grammar itself.
To run the tests in /corpus/
, run tree-sitter test
.