summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/elp.el
diff options
context:
space:
mode:
authorAlan Mackenzie <acm@muc.de>2018-05-31 11:32:15 +0000
committerAlan Mackenzie <acm@muc.de>2018-05-31 11:32:15 +0000
commite50634c3543facde0ab5891548ae54aa1cd30caf (patch)
tree73a0b7b3ddb2e5a4ff792effbbce2992a663e385 /lisp/emacs-lisp/elp.el
parentfb9c52bb7d29c85f3baee770355260830dacea50 (diff)
downloademacs-e50634c3543facde0ab5891548ae54aa1cd30caf.tar.gz
emacs-e50634c3543facde0ab5891548ae54aa1cd30caf.tar.bz2
emacs-e50634c3543facde0ab5891548ae54aa1cd30caf.zip
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.
Diffstat (limited to 'lisp/emacs-lisp/elp.el')
0 files changed, 0 insertions, 0 deletions