Make js-mode's syntax highlighting work again

* lisp/progmodes/js.el (js-mode): Fix the assigned
font-lock-defaults value (bug#23603).
This commit is contained in:
Dmitry Gutov 2016-05-24 13:09:32 +03:00
parent 850bcb1e58
commit 8af79702fc

View file

@ -3723,7 +3723,7 @@ If one hasn't been set, or if it's stale, prompt for a new one."
(setq-local beginning-of-defun-function #'js-beginning-of-defun)
(setq-local end-of-defun-function #'js-end-of-defun)
(setq-local open-paren-in-column-0-is-defun-start nil)
(setq-local font-lock-defaults '(js--font-lock-keywords))
(setq-local font-lock-defaults (list js--font-lock-keywords))
(setq-local syntax-propertize-function #'js-syntax-propertize)
(setq-local prettify-symbols-alist js--prettify-symbols-alist)