Ensure C++ initializer lists don't get fontified.
commit8c21f8fab915a5dabd7c3d10aae07ff36a3830e4
authorAlan Mackenzie <acm@muc.de>
Fri, 16 Jun 2017 11:26:59 +0000 (16 11:26 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 16 Jun 2017 11:26:59 +0000 (16 11:26 +0000)
treeae779b3c3006fb15235cd3c661627431a48f91b2
parentcc6a66b9a154b336a9a460b37ca843eb3b9e94f5
Ensure C++ initializer lists don't get fontified.

* lisp/progmodes/cc-cmds.el (c-block-comment-flag): Move declaration to solve
compiler warning.

* lisp/progmodes/cc-fonts.el (c-get-fontification-context): Add an extra
clause to handle C++ member initialization lists.
(c-font-lock-single-decl): New function, extracted from
c-font-lock-declarations.
(c-font-lock-declarations): Call c-font-lock-single-decl in place of inline
code.
(c-font-lock-cut-off-declarators): Make more rigorous by calling
c-get-fontification-context, c-forward-decl-or-cast-1, and
c-font-lock-single-decl in place of rather approximate code.
lisp/progmodes/cc-cmds.el
lisp/progmodes/cc-fonts.el