Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lex.phases] Use preprocessing token consistently #7361

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AlisdairM
Copy link
Contributor

Prior to converting preprocessing tokens to tokens in phase 7, all tokens are strictly preprocessing tokens. Add the missing qualification is appropriate through the phases of translation up to that point of conversion.

source/lex.tex Outdated
Comment on lines 181 to 183
\item Whitespace characters separating preprocessing tokens are no longer
significant. Each preprocessing token is converted into a
token\iref{lex.token}. The resulting tokens
Copy link
Member

Choose a reason for hiding this comment

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

Agreed with the rest of the changes, but this last paragraph would benefit from a bit of rephrasing:

"Each preprocessing token is converted into a token\iref..; whitespace characters separating tokens are no longer significant. The resulting tokens..."

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Amusingly, that distinction of preprocessor token before they were converted is what prompted this PR!

However, I agree that your reordering and preserving the existing use of just "token" is a better edit. Updated and pushed.

Prior to converting preprocessing tokens to tokens in phase 7,
all tokens are strictly preprocessing tokens.  Add the missing
qualification is appropriate through the phases of translation
up to that point of conversion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants