BeautifyRuby icon indicating copy to clipboard operation
BeautifyRuby copied to clipboard

Incorrect Indentation of Comments

Open antoinesaliba opened this issue 8 years ago • 2 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.

antoinesaliba avatar May 11 '16 13:05 antoinesaliba

Here is an example

if statement .... comment else .... end

instead of

if statement .... comment else .... end

antoinesaliba avatar May 11 '16 14:05 antoinesaliba

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.

antoinesaliba avatar May 11 '16 14:05 antoinesaliba