Handle the C++ "identifiers" "final" and "override" correctly.
commita1a777ffdf13afebca24793ded469b3cf0e76290
authorAlan Mackenzie <acm@muc.de>
Sat, 27 Aug 2016 19:57:42 +0000 (27 19:57 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 27 Aug 2016 19:57:42 +0000 (27 19:57 +0000)
treec7bda59a8ee3e97c506fc5e87222be7cf1a532a1
parent0ca712ca3d0df4d10664d97b5f4ba9f0a21e7a4c
Handle the C++ "identifiers" "final" and "override" correctly.

This fixes bug #24319, allowing destructors affixed with these identifiers to
be correctly fontified.

* lisp/progmodes/cc-engine.el (c-forward-type, c-forward-decl-or-cast-1):
After reaching the "end" of a type expression, skip over any occurrences of
c-type-decl-suffix-ws-ids-key.

* lisp/progmodes/cc-langs.el (c-type-modifier-kwds): Remove "override" and
"final" from the C++ value.
(c-type-decl-suffix-ws-ids-kwds, c-type-decl-suffix-ws-ids-key): New lang
constants/variables for "final" and "override".
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el