Skip to content

Consume Balanced Braces in Trailing Closure Lookahead #986

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
Oct 19, 2022

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Oct 19, 2022

Consuming single tokens isn't enough in this position because, as this test case demonstrates, any true trailing closures inside of the braced block will end our lookahead early.

Fixes #983
rdar://101330805

Consuming single tokens isn't enough in this position because,
as this test case demonstrates, any true trailing closures inside
of the braced block will end our lookahead early.

rdar://101330805
@CodaFi CodaFi requested a review from ahoppen as a code owner October 19, 2022 15:55
@CodaFi
Copy link
Contributor Author

CodaFi commented Oct 19, 2022

@swift-ci test

@CodaFi CodaFi merged commit 97a5893 into swiftlang:main Oct 19, 2022
@CodaFi CodaFi deleted the unsquare-dance branch October 19, 2022 17:35
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.

Failure to parse a one-line if
2 participants