Skip to content

Reverse .break(.close) and .close for array and dict literals. #119

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
Jan 21, 2020

Conversation

dylansturg
Copy link
Contributor

The previous order created an issue where the .break(.close) was outside of the group. The result was that it was possible just for the closing delimiter for an array/dict could break off from the rest of the literal. The new order of tokens places the break inside of the group, so the .break(.open) before the literal includes the length of the array/dict elements and the closing delimiter.

The previous order created an issue where the `.break(.close)` was outside of the group. The result was that it was possible just for the closing delimiter for an array/dict could break off from the rest of the literal. The new order of tokens places the break inside of the group, so the `.break(.open)` before the literal includes the length of the array/dict elements and the closing delimiter.
@allevato allevato merged commit 818c7c6 into swiftlang:master Jan 21, 2020
@dylansturg dylansturg deleted the break_close_order branch January 21, 2020 19: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.

2 participants