Open GoogleCodeExporter opened 8 years ago
Here's a patch that seems to fix the problem:
--- /Users/peter/Desktop/js2-20080616a.el 2008-11-06 08:11:37.000000000 -0800
+++ js2.el 2008-11-06 23:09:19.000000000 -0800
@@ -9985,11 +9985,12 @@
"Return non-nil if text after point is an operator (that is not
a comma)."
(save-match-data
- (and (looking-at js-indent-operator-re)
- (or (not (looking-at ":"))
- (save-excursion
- (and (js-re-search-backward "[?:{]\\|\\<case\\>" nil t)
- (looking-at "?")))))))
+ (let ((case-fold-search nil))
+ (and (looking-at js-indent-operator-re)
+ (or (not (looking-at ":"))
+ (save-excursion
+ (and (js-re-search-backward "[?:{]\\|\\<case\\>" nil t)
+ (looking-at "?"))))))))
(defun js-continued-expression-p ()
"Returns non-nil if the current line continues an expression."
Original comment by peter.se...@gmail.com
on 7 Nov 2008 at 7:10
Original issue reported on code.google.com by
peter.se...@gmail.com
on 6 Nov 2008 at 5:06