[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with font-lock-add-keywords
From: |
remi . ricard |
Subject: |
Problem with font-lock-add-keywords |
Date: |
Wed, 22 Oct 2008 07:25:09 -0700 (PDT) |
User-agent: |
G2/1.0 |
Hi,
I was using emacs 21.3 and then switched to emacs 22.3 (on Windows)
GNU Emacs 22.3.1
Copyright (C) 2008 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
The following lines were working in 21.3
(font-lock-add-keywords
'c++-mode
'(
("\\<[0-9]+\\.[0-9f]+\\>" 0 font-lock-floatnumber-face)
("[^_]\\<\\([0-9]+\\)\\>" (1 font-lock-number-face))
("\\<0x[0-9a-fA-F]+\\>" (0 font-lock-hexnumber-face))
("[{}()<>=;:+\\*\\/\\[]\\|\\]\\|\\-" (0 font-lock-keys-face))
("\\<TRUE+\\>" (0 font-lock-constant-face))
("\\<FALSE+\\>" (0 font-lock-constant-face))
))
Now in 22.3 I'm getting the follwing error message
Error during redisplay: (invalid-function (\<[0-9]+\.[0-9f]+\> 0 font-
lock-floatnumber-face)) [3 times]
Since my lisp is not that good. I'm asking for help after searching
the web and finding nothing about this
problem.
Remi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Problem with font-lock-add-keywords,
remi . ricard <=