]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Fix fontification problems shown by test file templates-20.cc
authorAlan Mackenzie <acm@muc.de>
Wed, 5 Apr 2023 13:02:12 +0000 (13:02 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 5 Apr 2023 13:02:12 +0000 (13:02 +0000)
commita42f4a775bab61581d6b8dbd4fe2eeab55a6ea31
tree850fa208c92cbfb285f070fa9dbefb9450e246ac
parent8678708ad10b17a4609c950a02cf39ab9ff86317
CC Mode: Fix fontification problems shown by test file templates-20.cc

Also fix one problem evident in test file decls-10.cc.

* lisp/progmodes/cc-engine.el (c-brace-stack-at): Bind
c-record-type-identifiers to nil to prevent called functions recording
identifiers spuriously.
(c-forward-<>-arglist-recur): Revert the ill-advised optimization from autumn
2022 which attempted to avoid re-marking c-type text properties inside angle
bracket arglists.
(c-forward-decl-or-cast-1): Accept the semicolon at the end of "t8 * id;" as
sufficient evidence to fontify as a declaration (not a multiplication).

* lisp/progmodes/cc-fonts.el (c-font-lock-c++-using): No longer fontify the
last component of foo::bar with c-reference-face-name.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el