BeautifyRuby
BeautifyRuby copied to clipboard
Incorrect Indentation of Comments
When a comment is placed above an else or elsif statement, it is incorrectly indented. I see why this is occurring because it believes the comment is part of the code above the else and elsif blocks but wondering if maybe this could be changed someone to check for comments and maybe not move them at all if it cannot be done that it is indented to match the clause under it.
Here is an example
if statement .... comment else .... end
instead of
if statement .... comment else .... end
same thing occurs when using a case clause, I want a comment right above the when line but it thinks it is part of the previous when clause.