I ran across this and typst.nvim while looking for typst tooling, and it seems like you have a good use case for rust-sitter. It would let you define the grammar in annotated rust code, and then automatically generate the tree-sitter parser and rust bindings. There's a good write-up about it here, I figure it's worth a look if you haven't checked it out yet.
I ran across this and typst.nvim while looking for typst tooling, and it seems like you have a good use case for rust-sitter. It would let you define the grammar in annotated rust code, and then automatically generate the tree-sitter parser and rust bindings. There's a good write-up about it here, I figure it's worth a look if you haven't checked it out yet.