• Alan Mackenzie's avatar
    Restore fontification of delimiters of multiline CC Mode strings. · 0c2d921a
    Alan Mackenzie authored
    E.g., on typing the closing delimiter of a string continued onto a second
    line, the opening delimiter retained its font-lock-warning-face.
    
    * lisp/progmodes/cc-defs.el (c-c++-raw-string-opener-re)
    (c-c++-raw-string-opener-1-re): New constants.
    (c-sub-at-c++-raw-string-opener, c-at-c++-raw-string-opener): New macros.
    
    * lisp/progmodes/cc-engine.el (c-raw-string-pos)
    (c-depropertize-raw-strings-in-region, c-after-change-unmark-raw-strings):
    Replace uses of open-coded raw string regexps by the new constants and macros
    in cc-defs.el.
    
    * lisp/progmodes/cc-fonts.el (c-font-lock-raw-strings): Ditto
    
    * lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Set
    c-new-BEG to the beginning of the string when we encounter its closing ".
    When not in a raw string, but in a string, clear syntax-table properties from
    its delimiters and set c-new-BEG/END to its limits.
    (c-after-change-mark-abnormal-strings): When applying syntax-table properties
    to string delimiters, also set c-new-BEG/END to ensure subsequent
    fontification.
    0c2d921a
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...