Fix misfontification of C++ member initialization list after "throw"
commitf838210b018b74b5dd86800aba807c78c921fc3a
authorAlan Mackenzie <acm@muc.de>
Thu, 14 Dec 2017 17:55:59 +0000 (14 17:55 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 14 Dec 2017 17:55:59 +0000 (14 17:55 +0000)
tree217b3c7d87e26f302926a3fba8fb6e1b6f4437ff
parent232c6465ce789f980da16063a865ac915b060ca4
Fix misfontification of C++ member initialization list after "throw"

* lisp/progmodes/cc-engine.el (c-forward-type): Stop recognizing a "type"
starting with "throw", by using c-opt-type-modifier-prefix-key.

* lisp/progmodes/cc-langs.el (c-type-modifier-prefix-kwds): New lang const
which, in C++, doesn't contain "throw", otherwise like c-type-modifier-kwds.
(c-opt-type-modifier-prefix-key): New lang const and var, a regexp matching
any keyword in the previous lang const.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el