Deal w/ multi-line String Literals.

This commit is contained in:
bill
2021-02-17 21:22:28 +08:00
parent 03c393beff
commit b6f7943d48
2 changed files with 320 additions and 292 deletions
+1
View File
@@ -184,6 +184,7 @@ Comments = #[^\r\n]*
}
<STR>{
{StringLiteral} {currString+=yytext();}
\\$ { /*'\' at the end of line, do nothing.*/ }
"\"" {yybegin(AFTER); return symbol(ChocoPyTokens.STRING, currString);}
}
<<EOF>> { return symbol(ChocoPyTokens.EOF); }