emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a bug in font lock for c++ code


From: Alan Mackenzie
Subject: Re: a bug in font lock for c++ code
Date: Wed, 23 Jun 2010 20:49:50 +0000
User-agent: Mutt/1.5.9i

Hi, zwz,

Thanks for the bug report.

On Mon, Jun 14, 2010 at 03:15:40PM +0000, zwz wrote:
> I find that my c++ code does not show in color after an update of emacs 
> recently.

> As far as I can figure out, the problem can be reproduced by:
> (defun my-c-mode-common-hook()
>  (font-lock-add-keywords nil
>     '(("\\<\\(FIXME\\):" 1 font-lock-warning-face prepend)
>       ("\\<\\(and\\|or\\|not\\)\\>" .
>        font-lock-keyword-face))))
> (add-hook 'c++-mode-hook 'my-c-mode-common-hook)

> I am running GNU Emacs 24.0.50.1 (i386-mingw-nt6.0.6002) of 2010-05-21.

Any chance you could provide a sample (preferably small) of C++ code
where the fontification goes wrong?

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]