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 #17 received at 39409 <at> debbugs.gnu.org (full text, mbox):

From: Benjamin Moody <benjamin.moody <at> gmail.com>
To: Alan Mackenzie <acm <at> muc.de>
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 17:47:33 +0000
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!

Benjamin




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.