]> git.eshelyaron.com Git - emacs.git/commit
Fix problems in CC Mode with " being entered into a comment at EOB.
authorAlan Mackenzie <acm@muc.de>
Tue, 23 Jul 2019 09:55:49 +0000 (09:55 +0000)
committerAlan Mackenzie <acm@muc.de>
Tue, 23 Jul 2019 09:55:49 +0000 (09:55 +0000)
commit6bd817ee66e7a5759ef6c5a8c12d57b5ec59043c
tree9b92b5409282e1612303827a5f143617c41eae30
parentdfb0ba79b5f41ca6fed25a03d2a5cd6996ec4753
Fix problems in CC Mode with " being entered into a comment at EOB.

* lisp/progmodes/cc-engine.el (c-full-lit-near-cache): Amend the definition
such that an element's END element will be nil if the pertinent literal is
open at EOB.
(c-full-pp-to-literal): Before setting the aforementioned END element, check
that we're no longer in a literal.  (c-literal-limits): When
c-full-pp-to-literal returns a list with a nil END element, replace this by
(point-max) to keep the interface of c-literal-limits unchanged.

* lisp/progmodes/cc-mode.el (c-after-change-mark-abnormal-strings): Having
found a string quote, check it is not inside an unterminated comment (i.e. one
at EOB).
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-mode.el