Lexer: Add a quotation mark back while parsing quotes

Thanks to Ondrej Zajicek for code.
This commit is contained in:
Pavel Tvrdik 2016-11-16 11:03:39 +01:00
parent 5e3cd0e5b5
commit 45ec4ce82a

View file

@ -203,6 +203,7 @@ else: {
["][^"\n]*["] { ["][^"\n]*["] {
yytext[yyleng-1] = 0; yytext[yyleng-1] = 0;
cf_lval.t = cfg_strdup(yytext+1); cf_lval.t = cfg_strdup(yytext+1);
yytext[yyleng-1] = '"';
return TEXT; return TEXT;
} }