Mercurial > cpython-lru_cache-weakref
diff Misc/python-mode.el @ 23530:ecef65e57cc6 legacy-trunk
(py-goto-statement-below): Watch out for landing in a triple quoted
string with text in column zero. Skip that stuff when looking for the
"first statement following the statement containing point".
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Thu, 23 May 2002 19:42:16 +0000 |
| parents | c375c5b26631 |
| children | 9a58d64f8fc3 |
line wrap: on
line diff
--- a/Misc/python-mode.el Thu May 23 19:41:25 2002 +0000 +++ b/Misc/python-mode.el Thu May 23 19:42:16 2002 +0000 @@ -2604,8 +2604,8 @@ (while (and (setq last-pos (point)) ; always true -- side effect (py-goto-statement-below) - (> (current-indentation) initial-indent)) - nil)) + (> (current-indentation) initial-indent) + ))) ;; else plain code line; stop at next blank line, or stmt or ;; indenting comment line indented < @@ -3341,7 +3341,8 @@ (let ((start (point))) (py-goto-beyond-final-line) (while (and - (looking-at py-blank-or-comment-re) + (or (looking-at py-blank-or-comment-re) + (py-in-literal)) (not (eobp))) (forward-line 1)) (if (eobp)
