I am a bit perplexed about how to capture a quoted string in ANTLR4.
Currently, this lexer rule is not tokenizing the way I expect.
The sample string is "=\""
. I've tried lots of different ways to capture this, but I am at a loss about what I am doing incorrectly. I'd really appreciate some insights on best practices for this. Thank you so much!
ESCAPED_QUOTE : '\"';
QUOTED_STRING : '"' ( ESCAPED_QUOTE | ~('\n'|'\r') )*? '"';