0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

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]*["] {
yytext[yyleng-1] = 0;
cf_lval.t = cfg_strdup(yytext+1);
yytext[yyleng-1] = '"';
return TEXT;
}