From 79f3656b3e9b115de7429d8e47f29049cfdd1609 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 13 Oct 2013 17:55:58 -0400 Subject: [PATCH 1/2] fix font-lock-keywords syntax The syntax is (MATCHER . FACENAME) (note the dot). --- yasnippet.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index f1bba52..0102a64 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -823,8 +823,8 @@ Honour `yas-dont-activate', which see." ("${\\([0-9]+\\):?" (0 font-lock-keyword-face) (1 font-lock-warning-face t)) - ("${" font-lock-keyword-face) - ("$[0-9]+?" font-lock-preprocessor-face) + ("${" . font-lock-keyword-face) + ("$[0-9]+?" . font-lock-preprocessor-face) ("\\(\\$(\\)" 1 font-lock-preprocessor-face) ("}" (0 font-lock-keyword-face))))) From f21ddd1b2e960375995afedd3975764a61a8e89b Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 13 Oct 2013 18:00:00 -0400 Subject: [PATCH 2/2] remove redundant font-lock-keywords `lisp-font-lock-keywords' is identical to `lisp-font-lock-keywords1', `lisp-font-lock-keywords2' is a superset of `lisp-font-lock-keywords1'. --- yasnippet.el | 2 -- 1 file changed, 2 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 0102a64..e7531fe 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -814,8 +814,6 @@ Honour `yas-dont-activate', which see." (defvar yas--font-lock-keywords (append '(("^#.*$" . font-lock-comment-face)) - lisp-font-lock-keywords - lisp-font-lock-keywords-1 lisp-font-lock-keywords-2 '(("$\\([0-9]+\\)" (0 font-lock-keyword-face)