]> git.eshelyaron.com Git - emacs.git/commit
C++ Mode: Modernize the fontification of "using"
authorAlan Mackenzie <acm@muc.de>
Sun, 20 Sep 2020 19:57:05 +0000 (19:57 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 20 Sep 2020 19:57:05 +0000 (19:57 +0000)
commit6089dec2b495527cd3ab7dc2390ae053cec33f00
tree377220b13e72b7a3a9b8df75691f9fdb9fea81cb
parent2007cd3cac689e4683bdf6c01b220cde48d25aa2
C++ Mode: Modernize the fontification of "using"

Since "using" is now used in three distinct ways in C++, write a special
function to handle these rather than attempting to adapt the old regular
expressions.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Amend to allow the
argument TYPES to be a face.  This face is given to the declarator being
processed.
(c-font-lock-single-decl): Make an argument to c-font-lock-declarators nil or
t, not merely nil or non-nil.
(c-complex-decl-matchers): Include c-font-lock-c++-using in the C++ value of
this variable.
(c-font-lock-c++-using): New function.

* lisp/progmodes/cc-langs.el (c-using-kwds, c-using-key): New lang
consts/vars.
(c-modifier-kwds): Remove "using" from the C++ value.
lisp/progmodes/cc-fonts.el
lisp/progmodes/cc-langs.el