GNU bug report logs - #64204
C/C++ local variables not syntax highlighted if they start with $

Previous Next

Package: emacs;

Reported by: Joseph Garvin <k04jg02 <at> gmail.com>

Date: Wed, 21 Jun 2023 11:28:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alan Mackenzie <acm <at> muc.de>
Cc: luangruo <at> yahoo.com, acm <at> muc.de, 64204-done <at> debbugs.gnu.org, k04jg02 <at> gmail.com
Subject: bug#64204: C/C++ local variables not syntax highlighted if they start with $
Date: Wed, 28 Jun 2023 21:50:51 +0300
> Date: Wed, 28 Jun 2023 18:45:09 +0000
> Cc: luangruo <at> yahoo.com, 64204-done <at> debbugs.gnu.org, acm <at> muc.de
> From: Alan Mackenzie <acm <at> muc.de>
> 
> > I do feel it's worth the effort.  If we value correct fontification,
> > of course.  I don't know what my opinions on this mean for you, but
> > there you have it.  I cannot force you make this change, of course, I
> > can only try to convince.
> 
> :-)  OK, the fontification of identifiers with $ is now working.  By
> default they are fontified as normal identifiers (i.e. with
> font-lock-type-face, font-lock-variable-name-face, or
> font-lock-function-name-face), but if the (new) customisable option
> c-warn-ids-with-dollar is set to non-nil, font-lock-warning-face is used
> instead.  The above applies only to C, C++, and Objective C Modes, and to
> any derived modes which enable the mechanism.

Thanks!




This bug report was last modified 1 year and 330 days ago.

Previous Next


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