--- Begin Message ---
Subject: |
25.0.50; c-mode: incorrect fontification of simple enums |
Date: |
Fri, 23 Jan 2015 15:36:33 -0800 |
Hi. I'm running a very recent build of emacs from git revision 253d44b
(2015/01/08). I'm loading a very simple C file that has some enums
defined (attached). The enum elements all should have been rendered with
font-lock-variable-name-face
However at startup with
emacs -Q -nw
only some of the elements get this face; many have just the default
face. Pressing M-x changes things: some elements actually lose the
correct face. In general, using emacs tends to change what is or isn't
rendered properly. I'm attaching screenshots of the state at startup and
after M-x.
This is 100% reproducible on my end.
enum xxx_xxxxxxxxxx_x
{XXX_XXXX_XXXX_XXXXX_XXXXX,
XXX_XXXX_XXXX_XXXXX_XXXXX,
XXX_XXXX_XXXXXX_XXXXXXXX_XXXXXXX,
XXX_XXXX_XXXXXX_XXXXXXXX_XXXXXXX,
XXX_XXXX_XXXX_XXXXXXXX,
XXXXXX_XXXXXXX_XXXX_XXXXXXXX,
XXXXX_XXXXXX_XXXX_XXXXXXXX,
XXX_XXXXXXX,
XXX_XXX_XXXXXXXX,
XXX_XXX_XXX_XXXXXXXXX,
XXXXXX_XXX_XXXXXXX,
X_XXXXXXXXXX};
enum xxx_xxxx_xxxxxxxxxx_x
{XXX_XXXXXX_XXXX_XXX,
XXX_XXXXXX_XXXX_XX,
XXX_XXXXXXXX_XXXX_XXX,
XXX_XXXX_XXXXXXX,
XXX_XX_XXXXX_XXXX_XXXXXXX,
XXXXXX_XXXXXX_XXXX_XXXXXXXX,
XXX_XXXX_XXXXXXX,
// xxx
XXXXXX_XXXXXXXX};
startup.png
Description: PNG image
Meta-x.png
Description: PNG image
--- End Message ---