[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, 30 Oct 2010 12:31:47 +0000 |
User-agent: |
Mutt/1.5.9i |
On Thu, Oct 21, 2010 at 05:11:01PM -0600, Christoph wrote:
> Fontification of enumeration typedefs seems to be broken in the trunk
> (r102035).
> Write the following piece of code to file.c and open it.
> typedef enum
> {
> MEMBER = _MEMBER,
> MEMBER = _MEMBER,
> MEMBER = _MEMBER,
> MEMBER = _MEMBER,
> MEMBER = _MEMBER,
> MEMBER = _MEMBER,
[ snip 190 identical lines ]
> MEMBER = _MEMBER,
> MEMBER = _MEMBER,
> MEMBER = _MEMBER,
> MEMBER = _MEMBER,
> MEMBER = _MEMBER,
> MEMBER = _MEMBER
> } MyEnum;
> After the 22nd member, the fontification disappears, i.e. the
> members are not fontified as enumeration members anymore.
I've just committed a fix for this. The cause of the partial
fontification was jit_lock's habit of fontifying 500 bytes at a time in
the background. This reached the 22nd item in the enum block, after
which it had no context for the next lot of 500 bytes.
--
Alan Mackenzie (Nuremberg, Germany).