Hey, I have a small DSL. I’d like to syntax highlight it in codemirror.
I had prototyped a tree-sitter grammar for it. That seemed to work. It took me many tries to get it right though!
I found https://lezer-sandbox.vercel.app/ through here, or I think somewhere in the official docs, but it doesn’t seem to be fully working currently. It says “Highlight is null”
I’ve read through the system guide. It looks like I need to build with
lezer-generator, then write my own program to call “parse” (There’s no official parse cli?) and see how the tree looks?
How do I quickly check how highlighting looks?
Don’t want to sound like I’m criticizing the docs at all. Just want to make sure I’m aware of all the tooling.