diff options
author | Alan Mackenzie <acm@muc.de> | 2019-11-30 21:22:55 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2019-11-30 21:26:00 +0000 |
commit | 757e66afdc1cd4f0a261d368cafd5009e04084a4 (patch) | |
tree | 874f5b30fdca4ca6b234c543bb57d36e5017682f /lisp/emacs-lisp/debug.el | |
parent | 3c278b4999632621ef9690b319798d4ed752b163 (diff) | |
download | emacs-757e66afdc1cd4f0a261d368cafd5009e04084a4.tar.gz emacs-757e66afdc1cd4f0a261d368cafd5009e04084a4.tar.bz2 emacs-757e66afdc1cd4f0a261d368cafd5009e04084a4.zip |
CC Mode. Fix fontification bug with unterminated quotes on adjacent lines
In particular, with these unterminated quotes on each of two adjacent lines,
the following text was spuriously fontified with string face.
* lisp/progmodes/cc-defs.el
(c-search-backward-char-property-with-value-on-char): New macro.
* lisp/progmodes/cc-mode.el (c-clear-string-fences): Check whether there is an
unmatched quote at a lower buffer position which should match the current
quote, rather than wrongly assuming the latter is unmatched and marking it
with a punctuation syntax.
(c-font-lock-fontify-region): Ensure all pertinent parts of the buffer have
string fence properties applied before performing any syntactic operations on
it; in particular, this applies to a quote at an earlier buffer position which
"matches" one inside the region about to be fontified.
Diffstat (limited to 'lisp/emacs-lisp/debug.el')
0 files changed, 0 insertions, 0 deletions