GNU bug report logs -
#58537
CC Mode 5.35.1 (C/*l); Keywords being fontified as types at random
Previous Next
Reported by: Po Lu <luangruo <at> yahoo.com>
Date: Sat, 15 Oct 2022 03:44:01 UTC
Severity: normal
Merged with 58539
Done: Alan Mackenzie <acm <at> muc.de>
Bug is archived. No further changes may be made.
Full log
Message #38 received at 58537 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello again, Po.
On Wed, Oct 19, 2022 at 18:27:34 +0800, Po Lu wrote:
> Alan Mackenzie <acm <at> muc.de> writes:
> > I think the patch solves #58537 together with the problems you reported
> > since. Does it also solve #58539?
> Yes, it does, ....
That's fantastic!
> .... but there's still an unsolved problem:
> test ()
> {
> dm_window_ptr window;
> window = id_private_fetch ();
> if (window)
> }
> if this is edited into:
> test ()
> {
> dm_window_ptr window;
> window = id_private_fetch ();
> if ((window)addr window)
> }
> which is not valid C, but still something that can happen while typing a
> program, and it is then edited into:
> test ()
> {
> dm_window_ptr window;
> window = id_private_fetch ();
> if ((window_addr) window)
> }
> "window" in the line above the "if" remains fontified as a type.
Sorry, you mentioned this before, and I didn't get around to fixing it.
Would you please try applying the attached patch on top of the earlier
patch from this morning (for me)/afternoon (for you).
If this works OK, then I propose linking bugs #58537 and #58539 and
closing them. Thanks for being so patient and insistent over the last
few days.
> Thanks.
--
Alan Mackenzie (Nuremberg, Germany).
[diff.20221019b.diff (text/plain, attachment)]
This bug report was last modified 2 years and 256 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.