diff --git a/grammar/MXLexer.g4 b/grammar/MXLexer.g4 index d22d2f8..2aea863 100644 --- a/grammar/MXLexer.g4 +++ b/grammar/MXLexer.g4 @@ -60,7 +60,7 @@ FORMAT_STRING_WHOLE: 'f"' FORMAT_STR_INTERNAL '"'; FORMAT_STRING_HEAD: 'f"' FORMAT_STR_INTERNAL '$'; FORMAT_STRING_TAIL: '$' FORMAT_STR_INTERNAL '"'; FORMAT_STRING_BODY: '$' FORMAT_STR_INTERNAL '$'; -fragment FORMAT_STR_INTERNAL : (DOLLAR_IN_FORMAT_STR | ESC | ~[$"\\])*?; +fragment FORMAT_STR_INTERNAL : (DOLLAR_IN_FORMAT_STR | ESC | ~[$"\\])*; fragment FORMAT_STR_BEG: 'f"'; fragment FORMAT_STR_END: '"'; fragment DOLLAR_IN_FORMAT_STR: '$$';