include doublequote characters in string literal token text
This commit is contained in:
parent
db08091cf4
commit
9f2f6be9bb
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user