Fontify CPP expressions correctly when starting in the middle of such a
commit826cee649d749f010391a5c36bb9ef4e89ad28c1
authorAlan Mackenzie <acm@muc.de>
Sat, 20 Aug 2011 14:54:21 +0000 (20 14:54 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 20 Aug 2011 14:54:21 +0000 (20 14:54 +0000)
tree445b605c0763b4c1ff2755146b72b773f204b506
parentb128268e4491e93c332d14c8ae92646ab5884fba
Fontify CPP expressions correctly when starting in the middle of such a
construct.  Mainly for when jit-lock etc. starts a chunk here.

cc-fonts.el (c-font-lock-context): new buffer local variable.
(c-make-font-lock-search-form): new function, extracted from
c-make-font-lock-search-function.
(c-make-font-lock-search-function): Use the above function.
(c-make-font-lock-context-search-function): New function.
(c-cpp-matchers): Enhance the preprocessor expression case with the above
function
(c-font-lock-complex-decl-prepare):  Test for being in a CPP form which
takes an expression.

cc-langs.el (c-cpp-expr-intro-re): New lang-variable.
lisp/ChangeLog