1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 01:41:01 -08:00
emacs/doc
Alan Mackenzie d6bcb39ba9 Fontify C, C++, Objective C identifiers containing $
Optionally, fontify them with font-lock-warning-face.
This fixes bug#64204.

* lisp/progmodes/cc-fonts.el (c-font-lock-ids-with-dollar):
New function.
(c-simple-decl-matchers, c-complex-decl-matchers): invoke
c-font-lock-ids-with-dollar for pertinent languages.

* lisp/progmodes/cc-langs.el (c-symbol-start): Add `$' to the
character list.
(c-dollar-in-ids): New lang const.
(c-symbol-key): For the Pike value, use the AWK value rather
than the C value as the basis, as the latter is no longer
suitable.

* lisp/progmodes/cc-vars.el (c-warn-ids-with-dollar): New
customizable option.

* doc/misc/cc-mode.texi ("Miscellaneous Font Locking"): Add a
section on the new optional fontification of identifiers with
'font-lock-warning-face'.
2023-06-28 18:29:39 +00:00
..
emacs ; Minor fixes of recently-installed regexp documentation changes 2023-06-22 08:32:16 +03:00
lispintro ; * doc/lispintro/emacs-lisp-intro.texi (car & cdr): Fix typo. 2023-06-25 08:25:13 +03:00
lispref Merge from origin/emacs-29 2023-06-24 07:13:42 -04:00
man ; Add 2023 to copyright years. 2023-01-01 05:31:12 -05:00
misc Fontify C, C++, Objective C identifiers containing $ 2023-06-28 18:29:39 +00:00