• Alan Mackenzie's avatar
    CC Mode. Fix fontification bug with unterminated quotes on adjacent lines · 757e66af
    Alan Mackenzie authored
    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.
    757e66af
Name
Last commit
Last update
admin Loading commit data...
build-aux Loading commit data...
doc Loading commit data...
etc Loading commit data...
leim Loading commit data...
lib Loading commit data...
lib-src Loading commit data...
lisp Loading commit data...
lwlib Loading commit data...
m4 Loading commit data...
modules Loading commit data...
msdos Loading commit data...
nextstep Loading commit data...
nt Loading commit data...
oldXMenu Loading commit data...
src Loading commit data...
test Loading commit data...
.clang-format Loading commit data...
.dir-locals.el Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
BUGS Loading commit data...
CONTRIBUTE Loading commit data...
COPYING Loading commit data...
ChangeLog.1 Loading commit data...
ChangeLog.2 Loading commit data...
ChangeLog.3 Loading commit data...
GNUmakefile Loading commit data...
INSTALL Loading commit data...
INSTALL.REPO Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
autogen.sh Loading commit data...
config.bat Loading commit data...
configure.ac Loading commit data...
make-dist Loading commit data...