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

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

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


From: Alan Mackenzie
Subject: bug#13612: 24.3.50; Incorrect syntax highlighting in cc-mode
Date: Tue, 5 Feb 2013 14:54:06 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

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 <eliz@gnu.org> wrote:

> > > From: Dima Kogan <dima@secretsauce.net>
> > > 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).





reply via email to

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