diff options
author | Alan Mackenzie <acm@muc.de> | 2022-08-24 19:27:32 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2022-08-24 19:27:32 +0000 |
commit | 78923c5f4e26d3cb9fbaf0dbf2d04c523482e52c (patch) | |
tree | 1215702df97232bd09c7195b0377e0f63ef450f5 /lisp/progmodes/cc-fonts.el | |
parent | 95b1eacd4750da7329380aabcb383a8f9d96a59b (diff) | |
download | emacs-78923c5f4e26d3cb9fbaf0dbf2d04c523482e52c.tar.gz |
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.
Diffstat (limited to 'lisp/progmodes/cc-fonts.el')
-rw-r--r-- | lisp/progmodes/cc-fonts.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-fonts.el b/lisp/progmodes/cc-fonts.el index 2495d21a10f..12bb3d37513 100644 --- a/lisp/progmodes/cc-fonts.el +++ b/lisp/progmodes/cc-fonts.el @@ -940,7 +940,8 @@ casts and declarations are fontified. Used on level 2 and higher." '(c-decl-arg-start c-decl-end c-decl-id-start - c-decl-type-start))) + c-decl-type-start + c-not-decl))) (1- (point)) pos) limit 'c-type))) |