]> git.eshelyaron.com Git - emacs.git/commit
C++ Mode - Fontify "class Foo {\n ~Foo() noexcept;" correctly
authorAlan Mackenzie <acm@muc.de>
Wed, 24 Aug 2022 19:27:32 +0000 (19:27 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 24 Aug 2022 19:27:32 +0000 (19:27 +0000)
commit78923c5f4e26d3cb9fbaf0dbf2d04c523482e52c
tree1215702df97232bd09c7195b0377e0f63ef450f5
parent95b1eacd4750da7329380aabcb383a8f9d96a59b
C++ Mode - Fontify "class Foo {\n  ~Foo() noexcept;" correctly

This fixes bug #49787.

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): (In `if' form just
before CASE 8) Remove the (not ...) around the (looking-at
c-after-suffixed-type-maybe-decl-key).

* lisp/progmodes/cc-fonts.el (c-font-lock-complex-decl-prepare): Add
`c-not-decl' to the values of c-type which are erased at the start of a
fontification.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el