From 45ec4ce82a3b82f27ff6c44ad11570606733775e Mon Sep 17 00:00:00 2001 From: Pavel Tvrdik Date: Wed, 16 Nov 2016 11:03:39 +0100 Subject: Lexer: Add a quotation mark back while parsing quotes Thanks to Ondrej Zajicek for code. --- conf/cf-lex.l | 1 + 1 file changed, 1 insertion(+) (limited to 'conf') diff --git a/conf/cf-lex.l b/conf/cf-lex.l index ad9aa10a..bd6dfff2 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; } -- cgit v1.2.3