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

Indentation of comments in try catch blocks #108

Open
snakch opened this issue Oct 27, 2022 · 0 comments
Open

Indentation of comments in try catch blocks #108

snakch opened this issue Oct 27, 2022 · 0 comments

Comments

@snakch
Copy link

snakch commented Oct 27, 2022

Hi!

Currently, if you try to leave a comment before a catch statement, it will be indented. This is a bit of an eyesore when you're trying to comment on what sort of error you're catching for instance. Here is what I mean:

# I want to do thing
try
    thing
    # This comment is indented no matter what :(
catch e
    something_else
end

And here is what would look better in my opinion:

# I want to do thing
try
    thing

# This comment is indented no matter what :(
catch e
    something_else
end

Or perhaps without the newline before the comment.

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

No branches or pull requests

1 participant