and I can keep going by adding every possible unicode symbol to the middle, but I’m wondering if there isn’t a way to match every character, like .* in regex? Thanks!
An underscore matches any character. But that won’t work here, because that’ll also match {% endcomment %}. Finding that kind of end terminators in a regular language is awkward, so it might be easier to write this as an external tokenizer.
Is the functionality of underscore documented somewhere? I just spent the better part of a morning trying to figure out why StringEscape { "\\" _ } from the Lezer System Guide works. Could not find anything about underscore.
If not documented, it should be IMO. It is a crucial part of not just the syntax but also the system guide.