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 doesn't work with } in comment. #5

Open
lsahn-gh opened this issue May 10, 2017 · 1 comment
Open

Indentation doesn't work with } in comment. #5

lsahn-gh opened this issue May 10, 2017 · 1 comment

Comments

@lsahn-gh
Copy link

public static void main(string[] args)
{
    int[] c = b[1:3];    // { 4, 6 }
{
    // something 
}

In the code, the last } in comment is automatically worked like a curly bracket right of main block, not like comment.
so indentation's been unbalanced as the code above.

@arrufat
Copy link
Member

arrufat commented May 24, 2017

Thanks for the bug report.
I've been playing a bit with the indent file and I think I'm not skilled enough yet.
(from what I've seen, all major indent files have this problem: C, Java, Rust...)
I might figure out how to fix it at some point. In the meantime, any help is welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants