Skip to content

Commit 40546cc

Browse files
committed
P2223R2 Trimming whitespaces before line splicing
1 parent fb3bea8 commit 40546cc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/lex.tex

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,18 @@
8686

8787
\item
8888
\indextext{line splicing}%
89-
Each instance of a backslash character (\textbackslash)
90-
immediately followed by a new-line character is deleted, splicing
89+
Each sequence of a backslash character (\textbackslash)
90+
immediately followed by
91+
zero or more whitespace characters other than new-line followed by
92+
a new-line character is deleted, splicing
9193
physical source lines to form logical source lines. Only the last
9294
backslash on any physical source line shall be eligible for being part
9395
of such a splice.
9496
Except for splices reverted in a raw string literal, if a splice results in
9597
a character sequence that matches the
9698
syntax of a \grammarterm{universal-character-name}, the behavior is
9799
undefined. A source file that is not empty and that does not end in a new-line
98-
character, or that ends in a new-line character immediately preceded by a
99-
backslash character before any such splicing takes place,
100+
character, or that ends in a splice,
100101
shall be processed as if an additional new-line character were appended
101102
to the file.
102103

0 commit comments

Comments
 (0)