Fix fontification of C++ declaration with type FOO::FOO.
commitd354fc38286cba05b3ba2fefb9d9cd6d30deac3d
authorAlan Mackenzie <acm@muc.de>
Sat, 22 Apr 2017 14:45:24 +0000 (22 14:45 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 22 Apr 2017 14:45:24 +0000 (22 14:45 +0000)
treec69648ef131e92d502fb1a2aded5ba7030a999a0
parenteb52828a439f674733ba70844b795c6673733572
Fix fontification of C++ declaration with type FOO::FOO.

* lisp/progmodes/cc-engine.el (c-find-decl-spots): Initialize
cfd-top-level properly.
(c-forward-decl-or-cast-1): On finding FOO::FOO, check it is followed by "("
before deciding it is a constructor.

* lisp/progmodes/cc-fonts.el (c-font-lock-complex-decl-prepare): Negate the
result of the c-bs-at-toplevel-p call passed to c-font-lock-declarators
(simple bug fix).
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el