bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#7264: 24.0.50; cc-mode: fontification of enums broken


From: Alan Mackenzie
Subject: bug#7264: 24.0.50; cc-mode: fontification of enums broken
Date: Sat, 23 Oct 2010 20:02:03 +0000
User-agent: Mutt/1.5.9i

Hi, Christoph!

On Sat, Oct 23, 2010 at 08:22:57AM -0600, Christoph wrote:
> On 10/21/2010 05:11 PM, Christoph wrote:
> >Fontification of enumeration typedefs seems to be broken in the trunk
> >(r102035).

> I traced the problem down to this bzr revision:

> revno: 101882
> committer: Alan Mackenzie <acm@muc.de>
> branch nick: trunk
> timestamp: Sat 2010-10-09 19:58:28 +0000
> message:
>   Enhance fontification of declarators to take account of the
>   presence/absence of "typedef".
>
>   cc-engine.el (c-forward-type): New &optional param "brace-block-too".
>   (c-forward-decl-or-cast-1): cdr of return value now indicates the
>   presence of either or both of a "struct"-like keyword and "typedef".
>
>   cc-fonts.el (c-complex-decl-matchers): Remove the heuristic 
> fontification of declarators which follow a "}".
>   (c-font-lock-declarations): Fontify declarators according to the
>   presence/absence of "typedef".

>   cc-langs.el (c-typedef-kwds c-typedef-key): New lang variable for
>   "typedef".
>   (c-typedef-decl-key): New lang variable built from c-typedef-decl-kwds.
>

Thanks for doing that!  I had a suspicion that latest change was the
guilty one.  I'll look into this and fix it, if at all possible.

> This change might also cause bug #7265 
> (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7265).

I'll look into that one, too.

> Christoph

-- 
Alan Mackenzie (Nuremberg, Germany).





reply via email to

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