set token text to string literal value for string literal tokens

This commit is contained in:
Josh Holtrop 2018-05-08 20:26:34 -04:00
parent 051dd9b9c1
commit 584fdae2ba

View File

@ -148,6 +148,8 @@ L?\" {
<str>{
\" {
BEGIN(INITIAL);
(*yylval)->token.text = build_string;
build_string = nullptr;
return STRING_LITERAL;
}
\\x[0-9A-Fa-f]{2} {