summaryrefslogtreecommitdiffstats
path: root/cmd-parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-parse.y')
-rw-r--r--cmd-parse.y6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd-parse.y b/cmd-parse.y
index c8995d8b..7b42c621 100644
--- a/cmd-parse.y
+++ b/cmd-parse.y
@@ -1505,8 +1505,12 @@ yylex_token(int ch)
state == NONE)
break;
- /* Spaces and comments inside quotes after \n are removed. */
+ /*
+ * Spaces and comments inside quotes after \n are removed but
+ * the \n is left.
+ */
if (ch == '\n' && state != NONE) {
+ yylex_append1(&buf, &len, '\n');
while ((ch = yylex_getc()) == ' ' || ch == '\t')
/* nothing */;
if (ch != '#')