diff --git a/yasnippet.el b/yasnippet.el index 3f007da..602e74e 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -1000,7 +1000,7 @@ Honour `yas-dont-activate-functions', which see." ;;; Major mode stuff (defvar yas--font-lock-keywords - (append '(("^#.*$" . font-lock-comment-face)) + (append '(("^#.*$" (0 'font-lock-comment-face))) (with-temp-buffer (let ((prog-mode-hook nil) (emacs-lisp-mode-hook nil)) @@ -1011,14 +1011,14 @@ Honour `yas-dont-activate-functions', which see." (cadr font-lock-keywords) font-lock-keywords)) '(("\\$\\([0-9]+\\)" - (0 font-lock-keyword-face) - (1 font-lock-string-face t)) + (0 'font-lock-keyword-face) + (1 'font-lock-string-face t)) ("\\${\\([0-9]+\\):?" - (0 font-lock-keyword-face) - (1 font-lock-warning-face t)) - ("\\(\\$(\\)" 1 font-lock-preprocessor-face) + (0 'font-lock-keyword-face) + (1 'font-lock-warning-face t)) + ("\\(\\$(\\)" 1 'font-lock-preprocessor-face) ("}" - (0 font-lock-keyword-face))))) + (0 'font-lock-keyword-face))))) (defvar snippet-mode-map (let ((map (make-sparse-keymap)))