diff options
author | Alan Mackenzie <acm@muc.de> | 2018-05-31 11:32:15 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2018-05-31 11:32:15 +0000 |
commit | e50634c3543facde0ab5891548ae54aa1cd30caf (patch) | |
tree | 73a0b7b3ddb2e5a4ff792effbbce2992a663e385 /lisp/emacs-lisp | |
parent | fb9c52bb7d29c85f3baee770355260830dacea50 (diff) | |
download | emacs-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')
0 files changed, 0 insertions, 0 deletions