From: Pavel Tvrdik Date: Wed, 16 Nov 2016 10:03:39 +0000 (+0100) Subject: Lexer: Add a quotation mark back while parsing quotes X-Git-Tag: v2.0.0-pre0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45ec4ce82a3b82f27ff6c44ad11570606733775e;p=thirdparty%2Fbird.git Lexer: Add a quotation mark back while parsing quotes Thanks to Ondrej Zajicek for code. --- diff --git a/conf/cf-lex.l b/conf/cf-lex.l index ad9aa10a7..bd6dfff20 100644 --- a/conf/cf-lex.l +++ b/conf/cf-lex.l @@ -203,6 +203,7 @@ else: { ["][^"\n]*["] { yytext[yyleng-1] = 0; cf_lval.t = cfg_strdup(yytext+1); + yytext[yyleng-1] = '"'; return TEXT; }