]> git.eshelyaron.com Git - emacs.git/commit
Add fontification for a C declaration which looks like a function call.
authorAlan Mackenzie <acm@muc.de>
Mon, 25 Apr 2016 15:19:58 +0000 (15:19 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 25 Apr 2016 15:19:58 +0000 (15:19 +0000)
commitfda715c6cb576502c987e599964b715687b05b15
tree00c434034bf7cd0815b3af3a8cc7424700be2c68
parent438b98e5b70c55129453870b870a139c4a4a77fd
Add fontification for a C declaration which looks like a function call.

For example, "t1 *fn (t2 *b);".

* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Add new variable
at-decl-start, setting it to whether the putative decl starts immediately
after ; or { or }.  Accept such a construct as a decl when at-decl-start is
non-nil.

* lisp/progmodes/cc-langs.el (c-pre-start-tokens): New language variable.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el