include doublequote characters in string literal token text
This commit is contained in:
1 parent
db08091cf4
commit
9f2f6be9bb
1 file changed
+2
-1
+2
-1
@@ -150,12 +150,13 @@ L?\" {
|
||||
{
|
||||
delete build_string;
|
||||
}
|
||||
build_string = new std::string();
|
||||
build_string = new std::string("\"");
|
||||
BEGIN(str);
|
||||
}
|
||||
<str>{
|
||||
\" {
|
||||
BEGIN(INITIAL);
|
||||
*build_string += "\"";
|
||||
(*yylval)->token.text = build_string;
|
||||
build_string = nullptr;
|
||||
return STRING_LITERAL;
|
||||
|
||||
Reference in new issue
Block a user