Skip to content

[lex.phases] Move dropping whitespace to end of phase 4 #8117

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

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

Conversation

AlisdairM
Copy link
Contributor

Phase 7 deals only with tokens, not whitespace. For clarity move the dropping of whitespace to the end of phase 4, after preprocessing directives are deleted. Newline characters are significant in the grammar of preprocessing directives to whitespace characters are clearly signicant until this point. Conversely, it is good to recognise that string literal preprocessing tokens are adjacted regardless of whitespace in phases 5 and 6.

Phase 7 deals only with tokens, not whitespace.  For clarity
move the dropping of whitespace to the end of phase 4, after
preprocessing directives are deleted.  Newline characters are
significant in the grammar of preprocessing directives to
whitespace characters are clearly signicant until this point.
Conversely, it is good to recognise that string literal
preprocessing tokens are adjacted regardless of whitespace
in phases 5 and 6.
@AlisdairM AlisdairM force-pushed the move_dropping_whitespace branch from 4099a09 to 8322e95 Compare July 25, 2025 12:38
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