aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2015-08-21 09:03:52 -0400
committerStefan Monnier2015-08-21 09:03:52 -0400
commit9f31fb2a660a26ba510568fae102afc68db8f385 (patch)
tree543d358f4981d7b947e1f7e98eecd2fc822085b0
parent2f5e8090824d7d1ca8894c12a1e51e2ad340c012 (diff)
downloademacs-9f31fb2a660a26ba510568fae102afc68db8f385.tar.gz
emacs-9f31fb2a660a26ba510568fae102afc68db8f385.zip
* lisp/progmodes/js.el (js-mode): Don't eagerly syntax propertize.
-rw-r--r--lisp/progmodes/js.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 40a4a1080b5..98a22dd8441 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -3560,9 +3560,10 @@ If one hasn't been set, or if it's stale, prompt for a new one."
3560 ;; the buffer containing the problem, JIT-lock will apply the 3560 ;; the buffer containing the problem, JIT-lock will apply the
3561 ;; correct syntax to the regular expression literal and the problem 3561 ;; correct syntax to the regular expression literal and the problem
3562 ;; will mysteriously disappear. 3562 ;; will mysteriously disappear.
3563 ;; FIXME: We should actually do this fontification lazily by adding 3563 ;; FIXME: We should instead do this fontification lazily by adding
3564 ;; calls to syntax-propertize wherever it's really needed. 3564 ;; calls to syntax-propertize wherever it's really needed.
3565 (syntax-propertize (point-max))) 3565 ;;(syntax-propertize (point-max))
3566 )
3566 3567
3567;;;###autoload (defalias 'javascript-mode 'js-mode) 3568;;;###autoload (defalias 'javascript-mode 'js-mode)
3568 3569