diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2016-05-11 02:26:54 +0300 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2016-05-11 02:27:46 +0300 |
commit | 8d2f78c421c73730f344dbf71dbed61d5ef8e46d (patch) | |
tree | 11ec8e2e941034e9bef5bc75c445d8d57a65f7a4 /lisp/progmodes | |
parent | fc8a4e0ad44667cff79750946ebc695968e95b01 (diff) | |
download | emacs-8d2f78c421c73730f344dbf71dbed61d5ef8e46d.tar.gz |
Don't treat JS spread as contination method call
* lisp/progmodes/js.el (js--indent-operator-re):
Allow only one dot (bug#23492).
* test/indent/js.js (default): Add a corresponding example.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/js.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 48eb3e778e1..f024d397ffb 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -1744,7 +1744,7 @@ This performs fontification according to `js--class-styles'." "Regular expression matching variable declaration keywords.") (defconst js--indent-operator-re - (concat "[-+*/%<>&^|?:.]\\([^-+*/]\\|$\\)\\|!?=\\|" + (concat "[-+*/%<>&^|?:.]\\([^-+*/.]\\|$\\)\\|!?=\\|" (js--regexp-opt-symbol '("in" "instanceof"))) "Regexp matching operators that affect indentation of continued expressions.") |