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

Formatter: Don't consume newline after endless range literals #10596

Merged

Conversation

HertzDevil
Copy link
Contributor

Fixes #10567.

According to Crystal::Parser#new_range, range literals do indeed not allow a newline between the range operator and the end expression.

@straight-shoota straight-shoota added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter labels Apr 7, 2021
@straight-shoota straight-shoota added this to the 1.1.0 milestone Apr 7, 2021
@asterite asterite merged commit da4148a into crystal-lang:master Apr 8, 2021
@HertzDevil HertzDevil deleted the bug/formatter-endless-range branch April 8, 2021 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Formatter removes newlines after ...
3 participants