GNU bug report logs - #39409
CC Mode 5.33.1 (C/*l); Wrong fontification of "foo * sizeof"

Previous Next

Package: cc-mode;

Reported by: Benjamin Moody <benjaminmoody <at> gmail.com>

Date: Mon, 3 Feb 2020 23:03:02 UTC

Severity: normal

Fixed in version 27.0.60

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


Message #22 received at control <at> debbugs.gnu.org (full text, mbox):

From: Alan Mackenzie <acm <at> muc.de>
To: Benjamin Moody <benjamin.moody <at> gmail.com>
Cc: 39409 <at> debbugs.gnu.org
Subject: Re: bug#39409: CC Mode 5.33.1 (C/*l); Wrong fontification of "foo *
 sizeof"
Date: Fri, 7 Feb 2020 20:01:03 +0000
close 39409 27.0.60
quit

Hello again, Benjamin.

On Fri, Feb 07, 2020 at 17:47:33 +0000, Benjamin Moody wrote:
> Hi,

> > diff -r a5dbcca7730b -r 19eb4ddc766b cc-engine.el
> > --- a/cc-engine.el	Sat Sep 21 12:09:54 2019 +0000
> > +++ b/cc-engine.el	Sat Sep 21 12:11:27 2019 +0000
> > @@ -10109,7 +10109,8 @@
> >  		     (throw 'at-decl-or-cast t)))))

> >  	   ;; CASE 18
> > -	   (when (and (not (memq context '(nil top)))
> > +	   (when (and at-decl-end
> > +		      (not (memq context '(nil top)))
> >  		      (or (and got-prefix (not got-number))
> >  			  (and (eq context 'decl)
> >  			       (not c-recognize-paren-inits)

> Yes, this patch fixes the issue.  Thanks once again!

Thank you for the test.  The patch in question is already in the
emacs-27 branch, so I think we can regard the bug as fixed.  I'm closing
it with this post.

> Benjamin

-- 
Alan Mackenzie (Nuremberg, Germany).




This bug report was last modified 5 years and 161 days ago.

Previous Next


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