summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2016-04-02 03:02:03 +0300
committerDmitry Gutov <dgutov@yandex.ru>2016-04-02 03:07:09 +0300
commitc28f87a53d4955396a3e3cb0223500eca921a872 (patch)
treeb3da90e86a33c8144537c1ccf11e15c8d683fe6a /test
parent2d02a5f729c804e841fee5df5b2ae2a06b705bd3 (diff)
downloademacs-c28f87a53d4955396a3e3cb0223500eca921a872.tar.gz
(js--continued-expression-p): Special-case unary plus and minus
* lisp/progmodes/js.el (js--continued-expression-p): Make an effort to recognize unary plus and minus, in the contexts where they make sense (https://github.com/mooz/js2-mode/issues/322).
Diffstat (limited to 'test')
-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 d843f615fd8..61c7b440ea3 100644
--- a/test/indent/js.js
+++ b/test/indent/js.js
@@ -95,6 +95,12 @@ Foobar
console.log(num);
});
+var arr = [
+ -1, 2,
+ -3, 4 +
+ -5
+];
+
// Local Variables:
// indent-tabs-mode: nil
// js-indent-level: 2