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

Incorrect Indentation of Comments #103

Open
antoinesaliba opened this issue May 11, 2016 · 2 comments
Open

Incorrect Indentation of Comments #103

antoinesaliba opened this issue May 11, 2016 · 2 comments

Comments

@antoinesaliba
Copy link

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
Copy link
Author

antoinesaliba commented May 11, 2016

Here is an example

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

instead of

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

@antoinesaliba
Copy link
Author

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.

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