]> git.eshelyaron.com Git - emacs.git/commit
Correctly fontify C++'s operator"" _tag (...)
authorAlan Mackenzie <acm@muc.de>
Fri, 14 Oct 2022 17:40:26 +0000 (17:40 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 14 Oct 2022 17:40:26 +0000 (17:40 +0000)
commit3da935d5339dfb43cb1be2df5f83b74b4e34ccc1
tree3fd104c0a188f1fe45f0de387f84d24ef6426b70
parent51fc195d39de6d7b1dad782d5d89476462eb6db8
Correctly fontify C++'s operator"" _tag (...)

Give both the "" and _tag font-lock-function-name-face.  Also correct the
fontification of an inherited class name when there is an attribute between
the class name being declared and the colon introducing the inheritance.

* lisp/progmodes/cc-engine.el (c-forward-over-colon-type-list): New function.
(c-forward-keyword-clause): Use the above new function instead of a
looking-at.
(c-forward-name, c-forward-declarator): Accept both the "" and the tag as part
of the name.

* lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Fontify the "" (which
already has font-lock-string-face) and the tag with
font-lock-function-name-face.

* lisp/progmodes/cc-langs.el (c-overloadable-operators): Add "" to this list.
(c-sub-colon-type-list-re): New lang-const and lang-var.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el
lisp/progmodes/cc-langs.el