I want to create (just for fun) a custom HTML parser based on LARK. My only problem is that even though I have defined
STRING: /.+/
and then place that as an option for start
it errors out saying e.g. that a {
hasn’t been closed when processing rule “STRING” or that an unterminated string literal has been encountered while processing rule “STRING”.
That it always says that the error happened while processing rule “STRING” tells me that LARK realized it should interpret what it saw as a “STRING”, but it somehow still errored out.