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 breaks indent #413

Closed
tlindig opened this issue Feb 19, 2014 · 0 comments
Closed

comment breaks indent #413

tlindig opened this issue Feb 19, 2014 · 0 comments
Milestone

Comments

@tlindig
Copy link

tlindig commented Feb 19, 2014

If I format this JavaScript:

this.type =
this.options =
this.enabled =
// comment
this.timeout =
this.hoverState =
this.$element = null;

I got this after formating:

this.type =
    this.options =
    this.enabled =
// comment
this.timeout =
    this.hoverState =
    this.$element = null;

but I would expect this:

this.type =
    this.options =
    this.enabled =
    // comment
    this.timeout =
    this.hoverState =
    this.$element = null;

It seams, the comment reset the ident, but it should not.

@bitwiseman bitwiseman added this to the v1.5.2 milestone Apr 28, 2014
@bitwiseman bitwiseman added the bug label Apr 28, 2014
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