From 317921ec180582ce33123d71fcc1beb1fe33bd19 Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Tue, 24 Jan 2006 13:38:07 +0000 Subject: [PATCH] (lisp-font-lock-keywords-2): Recognize "& keywords" only at word boundaries. --- lisp/ChangeLog | 5 +++++ lisp/font-lock.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9406f3809f1..93231f3ecee 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-01-24 Tobias C. Rittweiler (tiny change) + + * font-lock.el (lisp-font-lock-keywords-2): + Recognize "& keywords" only at word boundaries. + 2006-01-24 Nick Roberts * thumbs.el (thumbs-extra-images): New variable. Make it buffer-local diff --git a/lisp/font-lock.el b/lisp/font-lock.el index be857838ad2..53f2df11d1d 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -2126,7 +2126,7 @@ other modes in which C preprocessor directives are used. e.g. `asm-mode' and ;; Constant values. ("\\<:\\sw+\\>" 0 font-lock-builtin-face) ;; ELisp and CLisp `&' keywords as types. - ("\\&\\sw+\\>" . font-lock-type-face) + ("\\<\\&\\sw+\\>" . font-lock-type-face) ;; ELisp regexp grouping constructs ((lambda (bound) (catch 'found -- 2.39.5