diff options
author | Alan Mackenzie <acm@muc.de> | 2022-10-14 17:40:26 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2022-10-14 17:40:26 +0000 |
commit | 3da935d5339dfb43cb1be2df5f83b74b4e34ccc1 (patch) | |
tree | 3fd104c0a188f1fe45f0de387f84d24ef6426b70 /src/dired.c | |
parent | 51fc195d39de6d7b1dad782d5d89476462eb6db8 (diff) | |
download | emacs-3da935d5339dfb43cb1be2df5f83b74b4e34ccc1.tar.gz emacs-3da935d5339dfb43cb1be2df5f83b74b4e34ccc1.tar.bz2 emacs-3da935d5339dfb43cb1be2df5f83b74b4e34ccc1.zip |
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.
Diffstat (limited to 'src/dired.c')
0 files changed, 0 insertions, 0 deletions