GNU bug report logs - #13612
24.3.50; Incorrect syntax highlighting in cc-mode

Previous Next

Packages: emacs, cc-mode;

Reported by: Dima Kogan <dima <at> secretsauce.net>

Date: Sun, 3 Feb 2013 00:12:02 UTC

Severity: minor

Tags: notabug

Found in version 24.3.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: Dima Kogan <dima <at> secretsauce.net>
Cc: 13612 <at> debbugs.gnu.org
Subject: bug#13612: 24.3.50; Incorrect syntax highlighting in cc-mode
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 <eliz <at> gnu.org> wrote:

> > > From: Dima Kogan <dima <at> 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).




This bug report was last modified 12 years and 112 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.