diff options
| author | Alan Mackenzie | 2011-08-20 14:54:21 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2011-08-20 14:54:21 +0000 |
| commit | 826cee649d749f010391a5c36bb9ef4e89ad28c1 (patch) | |
| tree | 445b605c0763b4c1ff2755146b72b773f204b506 | |
| parent | b128268e4491e93c332d14c8ae92646ab5884fba (diff) | |
| download | emacs-826cee649d749f010391a5c36bb9ef4e89ad28c1.tar.gz emacs-826cee649d749f010391a5c36bb9ef4e89ad28c1.zip | |
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.
| -rw-r--r-- | lisp/ChangeLog | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f2a41ec16d1..f47ff5f1d0e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,22 @@ | |||
| 1 | 2011-08-20 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | * Fontify CPP expressions correctly when starting in the middle of | ||
| 4 | such a construct. Mainly for when jit-lock etc. starts a chunk | ||
| 5 | here. | ||
| 6 | |||
| 7 | * progmodes/cc-fonts.el (c-font-lock-context): new buffer local | ||
| 8 | variable. | ||
| 9 | (c-make-font-lock-search-form): new function, extracted from | ||
| 10 | c-make-font-lock-search-function. | ||
| 11 | (c-make-font-lock-search-function): Use the above function. | ||
| 12 | (c-make-font-lock-context-search-function): New function. | ||
| 13 | (c-cpp-matchers): Enhance the preprocessor expression case with | ||
| 14 | the above function | ||
| 15 | (c-font-lock-complex-decl-prepare): Test for being in a CPP form | ||
| 16 | which takes an expression. | ||
| 17 | |||
| 18 | * progmodes/cc-langs.el (c-cpp-expr-intro-re): New lang-variable. | ||
| 19 | |||
| 1 | 2011-08-20 Martin Rudalics <rudalics@gmx.at> | 20 | 2011-08-20 Martin Rudalics <rudalics@gmx.at> |
| 2 | 21 | ||
| 3 | * window.el (display-buffer-reuse-window) | 22 | * window.el (display-buffer-reuse-window) |