From 03b1b11547eab76851574eadd18e2ad186b2a080 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 12 Jan 2025 10:04:11 -0500 Subject: [PATCH] yasnippet.el (yas--font-lock-keywords): Avoid `font-lock-*-face` vars --- yasnippet.el | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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)))