From: Thien-Thi Nguyen Date: Tue, 24 Jan 2006 13:38:07 +0000 (+0000) Subject: (lisp-font-lock-keywords-2): X-Git-Tag: emacs-pretest-22.0.90~4603 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=317921ec180582ce33123d71fcc1beb1fe33bd19;p=emacs.git (lisp-font-lock-keywords-2): Recognize "& keywords" only at word boundaries. --- 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