do I have to write a parser for codemirror6 to get syntax highlighting

Hi, I would like to get some basic syntax highlighting for my toy language, so far it seems that I need to write a full blown parser in lezer to get syntax highlighting, is there an easy way to do this using some basic regexes and keywords?

Thanks

StreamLanguage may be what you are looking for, but in general writing a grammar is going to get you more robust support with not much more work.

1 Like