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 bug with end indent after comment #12964

Closed
straight-shoota opened this issue Jan 16, 2023 · 0 comments · Fixed by #12994
Closed

Formatter bug with end indent after comment #12964

straight-shoota opened this issue Jan 16, 2023 · 0 comments · Fixed by #12994

Comments

@straight-shoota
Copy link
Member

Hi, @straight-shoota , I found a new formatter issue which involves to comment on the lines,
maybe can be fix in one PR, please check. (if should create a new issue, please touch me)

Following code format correct.

module Test1
  begin
    raise "Error"
  rescue e : Exception
    puts "Error!"
  end
end

But, if comment the rescue lines out, end indentation error, like this.

module Test1
  begin
    raise "Error"
    # rescue e : Exception
    #   puts "Error!"
end
end

Originally posted by @zw963 in #12863 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant