]> git.eshelyaron.com Git - emacs.git/commit
Prevent spurious recognition of K&R argument declarations. Fixes bug #2203
authorAlan Mackenzie <acm@muc.de>
Fri, 22 Jan 2016 22:31:23 +0000 (22:31 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 22 Jan 2016 22:31:23 +0000 (22:31 +0000)
commitbbbb038654eab73624a5d51faa52f2d3f5db14b5
tree60ec0e1a51aebf7d6060e9b469a45e815e8ae235
parent6ff8b45f18619c2dc95dfb1d92a5c48b14049973
Prevent spurious recognition of K&R argument declarations.  Fixes bug #2203

* cc-engine.el (c-forward-declarator): New function.
(c-in-knr-argdecl): Before recognizing a K&R argument declaration, check it is
contained in the preceding arg list.

* cc-fonts.el (c-font-lock-declarators): Use the new function
`c-forward-declarator' in place of inline code.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el