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

Add support for SE-0393 #385

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Add support for SE-0393 #385

merged 1 commit into from
Mar 15, 2024

Conversation

alex-pinkus
Copy link
Owner

This adds new rules for parameter packs and expansions in both type and expression position. Since this includes the keyword "repeat", which was already a keyword for a do-while loop, we must modify the do-while loop rule so that it remains valid long enough to disqualify the parameter-pack interpretation.

With this change, it's starting to look like the "contextual keyword that is special cased as an identifier" pattern is going to become more standard. To facilitate that, this creates an explicit (hidden) rule for it.

Fixes #381

This adds new rules for parameter packs and expansions in both type and
expression position. Since this includes the keyword "repeat", which was
already a keyword for a do-while loop, we must modify the do-while loop
rule so that it remains valid long enough to disqualify the
parameter-pack interpretation.

With this change, it's starting to look like the "contextual keyword
that is special cased as an identifier" pattern is going to become more
standard. To facilitate that, this creates an explicit (hidden) rule for
it.

Fixes #381
@alex-pinkus alex-pinkus merged commit 78a736d into main Mar 15, 2024
55 checks passed
@alex-pinkus alex-pinkus deleted the se-0393 branch March 15, 2024 03:58
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.

Support SE-0393: Parameter Packs
1 participant