]> git.eshelyaron.com Git - emacs.git/commit
Amend c-before-change-check-unbalanced-strings to handle a quote at EOB.
authorAlan Mackenzie <acm@muc.de>
Thu, 31 May 2018 11:32:15 +0000 (11:32 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 31 May 2018 11:32:15 +0000 (11:32 +0000)
commite50634c3543facde0ab5891548ae54aa1cd30caf
tree73a0b7b3ddb2e5a4ff792effbbce2992a663e385
parentfb9c52bb7d29c85f3baee770355260830dacea50
Amend c-before-change-check-unbalanced-strings to handle a quote at EOB.

* lisp/progmodes/cc-mode.el (c-before-change-check-unbalanced-strings): Before
going back a sexp from the \n marked with a string-fence syntax-table text
property, check that it is indeed a \n.  If not, simply delete that text
property from the isolated quote, not the quote and the \n which otherwise
delimit an unterminated string.  Should we encounter a double quote marked
with a string-fence syntax-table text property at the end of the last line,
remove that property.
lisp/progmodes/cc-mode.el