diff options
author | Pavel Tvrdik <pawel.tvrdik@gmail.com> | 2016-11-16 11:03:39 +0100 |
---|---|---|
committer | Pavel Tvrdik <pawel.tvrdik@gmail.com> | 2016-11-16 12:21:19 +0100 |
commit | 45ec4ce82a3b82f27ff6c44ad11570606733775e (patch) | |
tree | 79b9288b4bd02ceb2d23a1c5b04e997c85c7c32b /conf | |
parent | 5e3cd0e5b56e6c58cfba4d0d38fbbbed3657889d (diff) |
Lexer: Add a quotation mark back while parsing quotes
Thanks to Ondrej Zajicek for code.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/cf-lex.l | 1 |
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; } |