diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2015-10-15 22:34:18 +0300 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2015-10-15 22:36:08 +0300 |
commit | 360d1d8caa1db0ffa7d0c02d4f03a4c921155c5a (patch) | |
tree | 30b87cc589d07a639882410cc273dffa17ff0bc9 /test/indent | |
parent | b4c00f9ac9d57eca8f2a4950fca6198065dbdcd0 (diff) | |
download | emacs-360d1d8caa1db0ffa7d0c02d4f03a4c921155c5a.tar.gz |
js-mode: Don't misindent generator methods
* lisp/progmodes/js.el (js--looking-at-operator-p): Distinguish
generator methods from multiplication operator
(https://github.com/mooz/js2-mode/issues/275).
Diffstat (limited to 'test/indent')
-rw-r--r-- | test/indent/js.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/indent/js.js b/test/indent/js.js index 2120233259a..d897b9f81e7 100644 --- a/test/indent/js.js +++ b/test/indent/js.js @@ -69,6 +69,13 @@ baz(`http://foo.bar/${tee}`) are kept unchanged!` +class A { + * x() { + return 1 + * 2; + } +} + // Local Variables: // indent-tabs-mode: nil // js-indent-level: 2 |