mooz / js2-mode

Improved JavaScript editing mode for GNU Emacs
GNU General Public License v3.0
1.32k stars 186 forks source link

private method and private property are not indenting #578

Closed hage closed 2 years ago

hage commented 2 years ago
// currently
class Foo {
#private_property = 10;
#private_method() {
  //
}
}

// I hope
class Foo {
  #private_property = 10;
  #private_method() {
    //
  }
}
dgutov commented 2 years ago

Hi!

As a question about indentation, it would need to be addressed to the Emacs bug tracker for js-mode, as mentioned in README.

BUT! This is already https://debbugs.gnu.org/47488

Try installing a snapshot build of Emacs 28, it's fixed there.

hage commented 2 years ago

I see, thanks!