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

comment bug and 'if' #5

Open
bounceme opened this issue Mar 28, 2016 · 3 comments
Open

comment bug and 'if' #5

bounceme opened this issue Mar 28, 2016 · 3 comments

Comments

@bounceme
Copy link

if (!(0 === 80 && 0 === 'http:') &&
!(0 === 443 && 0 === 'https:')) {
  var i = 0 + (':' + port)
}

if (0) {
  // default: use aws-sign2
    console.log("value");
}

the issue with the comment has something to do with the colon,thanks

@jason0x43
Copy link
Owner

D'oh, I need to work on the separation of comment vs non-comment indentation.

@jason0x43
Copy link
Owner

I pushed an update that should handle this case (among others). Let me know if it breaks anything else for you.

@bounceme
Copy link
Author

I'll try this out.
I've been doing a lot work on /~https://github.com/pangloss/vim-javascript since the indent script, which is the most popular among all vim users, was really not that great. I like how clean yours is so I may switch back

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

2 participants