Skip to content

Commit 275b35c

Browse files
committed
[lex.comment] Add a note that comments are replaced by a single space
Add a note about the transience of comments, that are immediately replaced by space characters as they are parsed.
1 parent 784cc65 commit 275b35c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/lex.tex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,12 @@
525525
characters \tcode{//} and \tcode{/*} have no special meaning within a
526526
\tcode{/*} comment.
527527
\end{note}
528+
\begin{note}
529+
Comments are turned into \unicode{0020}{space} characters in
530+
phase 3 of translation as part of decomposing a source file into
531+
preprocessing tokens and sequences of whitespace characters.
532+
\end{note}
533+
528534
\indextext{comment|)}
529535

530536
\rSec1[lex.pptoken]{Preprocessing tokens}

0 commit comments

Comments
 (0)