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

Fix indentation of parenthesized Expressions#to_s #14511

Conversation

HertzDevil
Copy link
Contributor

Before:

if true
(  1)
else
  (  1)
  (  @x = x).is_a?(A)
  2
end

After:

if true
  (1)
else
  (1)
  (@x = x).is_a?(A)
  2
end

@straight-shoota
Copy link
Member

This isn't just macro interpolation but Expressions#to_s.

@beta-ziliani beta-ziliani added this to the 1.13.0 milestone May 10, 2024
@straight-shoota straight-shoota changed the title Fix indentation of parenthesized Expressions' macro interpolation Fix indentation of parenthesized Expressions#to_s May 10, 2024
@straight-shoota straight-shoota merged commit 90d1e4a into crystal-lang:master May 14, 2024
60 checks passed
@HertzDevil HertzDevil deleted the bug/paren-expressions-to_s-indent branch May 14, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants