lark-parser / lark

Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
MIT License
4.75k stars 401 forks source link

Syntax breaks after escaped double quotes "\"" #1318

Closed Fxztam closed 1 year ago

Fxztam commented 1 year ago

I am trying to define the double quotes

DOUBLE_QUOTE: "\""

but the Syntax breaks after this escaped double quotes.

What can I do here?

Thanks, Fried

MegaIng commented 1 year ago

Please don't just duplicate an issue. Can you show a full example of what is going wrong? The syntax @erezsh showed you in your last issue does work. So why doesn't that syntax work for you? Make sure you are inside a r"" raw string literal.

Fxztam commented 1 year ago

Please excuse my ignorance and the duplicate issue, the syntax works of course with the r''' .. ''' raw string literal now.

Thanks again, Fried