Skip to content

Indentation of comments in try catch blocks #108

@snakch

Description

@snakch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions