Skip to content

Reduce recovery precedence of arrow in function type to exprKeyword #1399

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
Mar 10, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Mar 9, 2023

Only allow recovery to the arrow with exprKeyword precedence so we only skip over misplaced identifiers and don't e.g. recover to an errow in a 'where' clause.

CC @StevenWong12 I didn’t think about this case when reviewing your PR.

rdar://106457182

@ahoppen ahoppen requested review from jckarter and bnbarham March 9, 2023 18:25
@ahoppen
Copy link
Member Author

ahoppen commented Mar 9, 2023

@swift-ci Please test

@ahoppen ahoppen force-pushed the ahoppen/arrow-recovery-precedence branch from c30d1c7 to 11a5cb4 Compare March 9, 2023 18:28
@ahoppen
Copy link
Member Author

ahoppen commented Mar 9, 2023

@swift-ci Please test

Only allow recovery to the arrow with exprKeyword precedence so we only skip over misplaced identifiers and don't e.g. recover to an errow in a 'where' clause.

rdar://106457182
@ahoppen ahoppen force-pushed the ahoppen/arrow-recovery-precedence branch from 11a5cb4 to 590ee43 Compare March 9, 2023 22:03
@ahoppen
Copy link
Member Author

ahoppen commented Mar 9, 2023

@swift-ci Please test

@ahoppen ahoppen merged commit 8212815 into swiftlang:main Mar 10, 2023
@ahoppen ahoppen deleted the ahoppen/arrow-recovery-precedence branch March 10, 2023 21:56
ahoppen added a commit to ahoppen/swift that referenced this pull request Mar 10, 2023
The underlying issue should be fixed by swiftlang/swift-syntax#1399

rdar://106457182
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