emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8af7970: Make js-mode's syntax highlighting work ag


From: Dmitry Gutov
Subject: [Emacs-diffs] master 8af7970: Make js-mode's syntax highlighting work again
Date: Tue, 24 May 2016 10:09:45 +0000 (UTC)

branch: master
commit 8af79702fcdbee4e3151a48c1d194c8b014c3815
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Make js-mode's syntax highlighting work again
    
    * lisp/progmodes/js.el (js-mode): Fix the assigned
    font-lock-defaults value (bug#23603).
---
 lisp/progmodes/js.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 5081959..a35c4a3 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)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]