diff options
author | 2020-12-01 10:48:03 +0000 | |
---|---|---|
committer | 2020-12-01 10:48:03 +0000 | |
commit | d156f0b404fe418dae1064ea11fd7237762664ec (patch) | |
tree | d2470fcd00c0865133c8b0e993c9ef242c50a610 | |
parent | Make replacement of ##s consistent when drawing formats, whether (diff) | |
download | wireguard-openbsd-d156f0b404fe418dae1064ea11fd7237762664ec.tar.xz wireguard-openbsd-d156f0b404fe418dae1064ea11fd7237762664ec.zip |
Leave newlines inside multiline quotes.
-rw-r--r-- | usr.bin/tmux/cmd-parse.y | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-parse.y b/usr.bin/tmux/cmd-parse.y index 2c701ba7706..86f987a85e2 100644 --- a/usr.bin/tmux/cmd-parse.y +++ b/usr.bin/tmux/cmd-parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-parse.y,v 1.31 2020/07/13 10:10:10 nicm Exp $ */ +/* $OpenBSD: cmd-parse.y,v 1.32 2020/12/01 10:48:03 nicm Exp $ */ /* * Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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 != '#') |