]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Improve handling of unbalanced strings
authorAlan Mackenzie <acm@muc.de>
Tue, 2 Jul 2019 12:33:01 +0000 (12:33 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 2 Jul 2019 12:33:01 +0000 (12:33 +0000)
commitb25d58c956a9fcd2b81b804699573ea851bd8fde
tree75567cf91b5108b6257e2f83ae89a73448ce4581
parent22b64f7bac8d015f3d0e6a42e9d764a61656e7a1
CC Mode: Improve handling of unbalanced strings

* lisp/progmodes/cc-fonts.el (c-before-font-lock-functions): Add function
c-after-change-escape-NL-in-string into value for most languages.

* lisp/progmodes/cc-mode.el (c-after-change-escape-NL-in-string): New
function.
(c-before-change-check-unbalanced-strings): Handle the making and breaking of
escaped newlines, by removal or addition of text.
lisp/progmodes/cc-langs.el
lisp/progmodes/cc-mode.el