From 3c515d9acabb47bce5c60d997cf9ded5ff3cdfc7 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sun, 18 Apr 2021 17:04:12 +0300 Subject: Bugfix in the configuration file lexer. String values like the following caused failure: "foo \ bar \ baz \ qux" The second and third physical lines would not be recognized by the scanner. The bug was due to a long-standing copy-paste error. --- libmailutils/cfg/lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmailutils') diff --git a/libmailutils/cfg/lexer.l b/libmailutils/cfg/lexer.l index 7c43acb33..600a4f0ae 100644 --- a/libmailutils/cfg/lexer.l +++ b/libmailutils/cfg/lexer.l @@ -129,7 +129,7 @@ P [1-9][0-9]* _mu_line_begin (); _mu_line_add_unescape_last (yytext + 1, yyleng - 1); } [^\\"\n]*\\. | -\"[^\\"\n]*\\\n { _mu_line_add_unescape_last (yytext, yyleng); } +[^\\"\n]*\\\n { _mu_line_add_unescape_last (yytext, yyleng); } [^\\"\n]*\" { BEGIN (INITIAL); if (yyleng > 1) _mu_line_add (yytext, yyleng - 1); -- cgit v1.2.1