diff options
| author | Dmitry Gutov | 2016-03-05 14:35:10 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2016-03-05 14:35:35 +0200 |
| commit | dc9d837d02edd665f2c9468de51bb4a1dda7ef6d (patch) | |
| tree | c285c7e4df684ae98679577bc55e137c367736d7 /test | |
| parent | 792311228d8f4cb26262c279e310b0344d735bd8 (diff) | |
| download | emacs-dc9d837d02edd665f2c9468de51bb4a1dda7ef6d.tar.gz emacs-dc9d837d02edd665f2c9468de51bb4a1dda7ef6d.zip | |
Don't misindent computed property generator methods
* lisp/progmodes/js.el (js--looking-at-operator-p):
Don't misindent computed property generator methods
(https://github.com/mooz/js2-mode/issues/317).
Diffstat (limited to 'test')
| -rw-r--r-- | test/indent/js.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/indent/js.js b/test/indent/js.js index 9a1e0dc7ad5..d843f615fd8 100644 --- a/test/indent/js.js +++ b/test/indent/js.js | |||
| @@ -72,7 +72,12 @@ baz(`http://foo.bar/${tee}`) | |||
| 72 | class A { | 72 | class A { |
| 73 | * x() { | 73 | * x() { |
| 74 | return 1 | 74 | return 1 |
| 75 | * 2; | 75 | * a(2); |
| 76 | } | ||
| 77 | |||
| 78 | *[Symbol.iterator]() { | ||
| 79 | yield "Foo"; | ||
| 80 | yield "Bar"; | ||
| 76 | } | 81 | } |
| 77 | } | 82 | } |
| 78 | 83 | ||