summaryrefslogtreecommitdiff
path: root/test/indent
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2016-05-11 02:26:54 +0300
committerDmitry Gutov <dgutov@yandex.ru>2016-05-11 02:27:46 +0300
commit8d2f78c421c73730f344dbf71dbed61d5ef8e46d (patch)
tree11ec8e2e941034e9bef5bc75c445d8d57a65f7a4 /test/indent
parentfc8a4e0ad44667cff79750946ebc695968e95b01 (diff)
downloademacs-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 'test/indent')
-rw-r--r--test/indent/js.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/indent/js.js b/test/indent/js.js
index 23fae17b3ce..b40d47b3e5d 100644
--- a/test/indent/js.js
+++ b/test/indent/js.js
@@ -103,6 +103,12 @@ Foobar
console.log(num);
});
+var z = [
+ ...iterableObj,
+ 4,
+ 5
+]
+
var arr = [
-1, 2,
-3, 4 +