]> code.delx.au - gnu-emacs/commitdiff
(lisp-font-lock-keywords-2):
authorThien-Thi Nguyen <ttn@gnuvola.org>
Tue, 24 Jan 2006 13:38:07 +0000 (13:38 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Tue, 24 Jan 2006 13:38:07 +0000 (13:38 +0000)
Recognize "& keywords" only at word boundaries.

lisp/ChangeLog
lisp/font-lock.el

index 9406f3809f1efcd0a0a606a788c36e3a3dc6cb57..93231f3ecee6276c65dbd0c95076b66ae713eee8 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-24  Tobias C. Rittweiler  <tcr@freebits.de>  (tiny change)
+
+       * font-lock.el (lisp-font-lock-keywords-2):
+       Recognize "& keywords" only at word boundaries.
+
 2006-01-24  Nick Roberts  <nickrob@snap.net.nz>
 
        * thumbs.el (thumbs-extra-images): New variable.  Make it buffer-local
index be857838ad2eee617c723f8f0bd849e1cd6f1758..53f2df11d1d0056499fee2f44d100b1b195e1ba6 100644 (file)
@@ -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