]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Handle several consecutive noise macros in declaration contexts.
authorAlan Mackenzie <acm@muc.de>
Sat, 18 May 2019 15:20:49 +0000 (15:20 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 18 May 2019 15:20:49 +0000 (15:20 +0000)
commit95fb826dc58965eac287c0826831352edf2e56f7
tree32857db5b79ef4dcac22a4b5be2fd8a6c3972a30
parent67b6c1b295afb0c2f51a2e01e19ab4682845148e
CC Mode: Handle several consecutive noise macros in declaration contexts.

In the bug scenario, the second and subsequent noise macros with parentheses
were getting font-lock-type-face.

* lisp/progmodes/cc-engine.el (c-end-of-token)
(c-forward-noise-clause-not-macro-decl): New functions.
(c-find-decl-prefix-search): Handle noise macros by skipping over them.
(c-forward-decl-or-cast-1): In the loop checking for types, skip over all
consecutive noise macros with parens, not just one.
lisp/progmodes/cc-engine.el