Skip to content

Remove all token children that allowed arbitrary keywords #1579

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

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Apr 24, 2023

Allowing arbitrary keywords for a token was a bit of an anti-pattern. We should always explicitly specify which keywords we support. With token kind validation, this has pointed us to parser bugs before.

rdar://107156958

Allowing arbitrary keywords for a token was a bit of an anti-pattern. We should always explicitly specify which keywords we support. With token kind validation, this has pointed us to parser bugs before.

rdar://107156958
@ahoppen ahoppen requested a review from bnbarham April 24, 2023 23:21
@ahoppen
Copy link
Member Author

ahoppen commented Apr 24, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Apr 25, 2023

@swift-ci Please test

@ahoppen ahoppen merged commit 5155461 into swiftlang:main Apr 25, 2023
@ahoppen ahoppen deleted the ahoppen/no-arbitrary-keywords branch April 25, 2023 21:43
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.

3 participants