summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Tvrdik <pawel.tvrdik@gmail.com>2016-11-16 11:03:39 +0100
committerPavel Tvrdik <pawel.tvrdik@gmail.com>2016-11-16 12:21:19 +0100
commit45ec4ce82a3b82f27ff6c44ad11570606733775e (patch)
tree79b9288b4bd02ceb2d23a1c5b04e997c85c7c32b
parent5e3cd0e5b56e6c58cfba4d0d38fbbbed3657889d (diff)
Lexer: Add a quotation mark back while parsing quotes
Thanks to Ondrej Zajicek for code.
-rw-r--r--conf/cf-lex.l1
1 files changed, 1 insertions, 0 deletions
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;
}