GNU bug report logs - #54743
CC Mode 5.35.1 (C/*l); Incorrect fontification of function call as function name

Previous Next

Package: cc-mode;

Reported by: Po Lu <luangruo <at> yahoo.com>

Date: Wed, 6 Apr 2022 02:06:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


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

From: Po Lu <luangruo <at> yahoo.com>
To: Alan Mackenzie <acm <at> muc.de>
Cc: bug-cc-mode <at> gnu.org, 54743 <at> debbugs.gnu.org
Subject: Re: bug#54743: CC Mode 5.35.1 (C/*l); Incorrect fontification of
 function call as function name
Date: Sun, 10 Apr 2022 09:05:36 +0800
Alan Mackenzie <acm <at> muc.de> writes:

> This bug has the same cause as bug #52796, namely that a function's type
> contains the keyword struct, and an internal CC Mode cache thus thinks
> that the function's { is a struct's {, and that we are thus still at
> "top level".  The "fix" to that bug was to handle the * in "struct foo
> *" specially, but that wasn't a good enough fix for when "struct foo"
> occurs without a *, as here.
>
> So, the cause of the bug is understood.  The challenge will be to fix it
> without unduly slowing down CC Mode.  That's not going to happen this
> afternoon, I'm afraid.

Thanks for looking into it.




This bug report was last modified 3 years and 39 days ago.

Previous Next


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