mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 19:58:48 +00:00
Leave newlines inside multiline quotes.
This commit is contained in:
parent
9a74bba007
commit
f0c1233d4f
@ -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 != '#')
|
||||
|
Loading…
Reference in New Issue
Block a user