diff --git a/src/parser/parser.l b/src/parser/parser.l index 0cf1686..533af6e 100644 --- a/src/parser/parser.l +++ b/src/parser/parser.l @@ -150,12 +150,13 @@ L?\" { { delete build_string; } - build_string = new std::string(); + build_string = new std::string("\""); BEGIN(str); } { \" { BEGIN(INITIAL); + *build_string += "\""; (*yylval)->token.text = build_string; build_string = nullptr; return STRING_LITERAL;