Leave newlines inside multiline quotes.

This commit is contained in:
nicm 2020-12-01 10:48:03 +00:00
parent 9a74bba007
commit f0c1233d4f

View File

@ -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 != '#')