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

ES6 class generator indent issue #275

Closed
rodriguise opened this issue Oct 14, 2015 · 4 comments
Closed

ES6 class generator indent issue #275

rodriguise opened this issue Oct 14, 2015 · 4 comments

Comments

@rodriguise
Copy link

ES6 class generators get indented improperly, is there a way to correct this?

class Foo {
   bar() {
      // function
   }

        * bargen() {
        }
}
@dgutov dgutov closed this as completed in b1234ca Oct 15, 2015
@dgutov
Copy link
Collaborator

dgutov commented Oct 15, 2015

Thanks for the report.

dgutov added a commit to emacs-mirror/emacs that referenced this issue Oct 15, 2015
* lisp/progmodes/js.el (js--looking-at-operator-p): Distinguish
generator methods from multiplication operator
(mooz/js2-mode#275).
@rodriguise
Copy link
Author

Thanks, I install this build 20151015.1244 from melpa, is there something special I need to do to make this work? I am still not seeing the indents take properly.

@rodriguise
Copy link
Author

nm, had to clean out my cache and recompile.

@dgutov
Copy link
Collaborator

dgutov commented Oct 17, 2015

You probably only needed to restart Emacs.

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