Subject: Re: bug#13612: 24.3.50; Incorrect syntax highlighting in cc-mode

From: Alan Mackenzie <[email-masked]>
Date: Tue, 5 Feb 2013 14:54:06 +0000

Hi, Dima!

On Mon, Feb 04, 2013 at 12:59:44PM -0800, Dima Kogan wrote:
> > On Sun, 03 Feb 2013 05:48:41 +0200
> > Eli Zaretskii <[email-masked]> wrote:

> > > From: Dima Kogan <[email-masked]>
> > > Date: Sat, 02 Feb 2013 15:35:17 -0800

> > > void f(void)
> > > {
> > >   filter_R( dt );
> > >   filter_t( dt );

> > >   a = b;
> > > }

> > > I'm observing the filter_R line being colored differently from the
> > > filter_t line. Everything on the filter_R line is using the
> > > 'default' face. 'filter_t' uses font-lock-type-face.

> > The "foo_t" tokens are taken as data types, AFAIK, to support size_t,
> > off_t, etc.

> Ah, that makes sense now. Ideally emacs should be able to separate the two
> cases, ......

Do M-x customize-variable <CR> c-font-lock-extra-types, remove the entry
"\sw+_t", then reinitialise C Mode like it says.  The false fontification
should then be gone.

> ..... but maybe this is not significant enough to care. Thoughts?
> Should I close this bug?

Yes please, close it as "not a bug".  Thanks!

-- 
Alan Mackenzie (Nuremberg, Germany).