diff options
| author | Alan Mackenzie | 2019-07-23 09:55:49 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2019-07-23 09:55:49 +0000 |
| commit | 6bd817ee66e7a5759ef6c5a8c12d57b5ec59043c (patch) | |
| tree | 9b92b5409282e1612303827a5f143617c41eae30 /src/kqueue.c | |
| parent | dfb0ba79b5f41ca6fed25a03d2a5cd6996ec4753 (diff) | |
| download | emacs-6bd817ee66e7a5759ef6c5a8c12d57b5ec59043c.tar.gz emacs-6bd817ee66e7a5759ef6c5a8c12d57b5ec59043c.zip | |
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).
Diffstat (limited to 'src/kqueue.c')
0 files changed, 0 insertions, 0 deletions