From: Dmitry Gutov Date: Tue, 24 May 2016 10:09:32 +0000 (+0300) Subject: Make js-mode's syntax highlighting work again X-Git-Tag: emacs-26.0.90~1905 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8af79702fcdbee4e3151a48c1d194c8b014c3815;p=emacs.git Make js-mode's syntax highlighting work again * lisp/progmodes/js.el (js-mode): Fix the assigned font-lock-defaults value (bug#23603). --- diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 508195996b6..a35c4a31d06 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el @@ -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)