Subject: bug#39409: CC Mode 5.33.1 (C/*l); Wrong fontification of "foo * sizeof"

From: Alan Mackenzie <[email-masked]>
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).