Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions source/lex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,12 @@
characters \tcode{//} and \tcode{/*} have no special meaning within a
\tcode{/*} comment.
\end{note}
\begin{note}
Comments are turned into \unicode{0020}{space} characters in
phase 3 of translation as part of decomposing a source file into
preprocessing tokens and sequences of whitespace characters.
Comment on lines +529 to +531
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lex.phases p3 says a bit much in that location.

Maybe it's better to move the normative provision "Each comment (5.4) is replaced by one u+0020 space character." here or into lex.pptoken, possibly as part of the "whitespace grammar" paper.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was reluctant to touch the phases of translation more than necessary in P3657, the whitespace grammar paper. However, if we prefer that direction I will updated the next revision of that paper and close this PR.

\end{note}

\indextext{comment|)}

\rSec1[lex.pptoken]{Preprocessing tokens}
Expand Down