]> git.eshelyaron.com Git - emacs.git/commit
Fix fontification of first item in CC Mode macro without parentheses
authorAlan Mackenzie <acm@muc.de>
Thu, 2 May 2019 20:53:47 +0000 (20:53 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 2 May 2019 20:53:47 +0000 (20:53 +0000)
commitd9f62fceaf2915c67f6917c668af6ff4aacc26a7
treeb690acb6e6052d1d5e376654614475a58603e1ff
parent17a722982cca4e8e643c7a9102903e820e784cc6
Fix fontification of first item in CC Mode macro without parentheses

* lisp/progmodes/cc-engine.el (c-find-decl-prefix-search): Handle the new
matching possibility (of a #define construct) in the new
c-decl-prefix-or-start-re.
(c-find-decl-spots): Allow the initial search for an in-macro starting point
settle on the # of #define, to facilitate the regexp matching in
c-find-decl-prefix-search.

* lisp/progmodes/cc-langs.el (c-anchored-hash-define-no-parens): New lang
const.
(c-literal-start-regexp): Correct what was always supposed to be a "generic
string" regexp element.
(c-decl-prefix-or-start-re): Enhance also to match "#define <identifier>".
(c-dposr-cpp-macro-depth): New lang variable and lang constant.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el