* lisp/progmodes/js.el (js--looking-at-operator-p):
Handle nested ternary operators.
(and (looking-at js--indent-operator-re)
(or (not (eq (char-after) ?:))
(save-excursion
+ (js--backward-syntactic-ws)
+ (when (= (char-before) ?\)) (backward-list))
(and (js--re-search-backward "[?:{]\\|\\_<case\\_>" nil t)
(eq (char-after) ??))))
(not (and
let x = svg.mumble()
.zzz;
+// https://github.com/mooz/js2-mode/issues/405
+if (1) {
+ isSet
+ ? (isEmpty ? 2 : 3)
+ : 4
+}
+
// Local Variables:
// indent-tabs-mode: nil
// js-indent-level: 2