diff options
author | Barry Warsaw <barry@python.org> | 2002-05-23 19:42:16 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-05-23 19:42:16 (GMT) |
commit | f070cce6afebd3ef9cefb127d4e4db93881f3ec1 (patch) | |
tree | 90765826441a95fa1bb70c541cefa43478cea3e7 /Misc | |
parent | db2e3e3c9c37e7afb69574c1ee03224290ac1b6e (diff) | |
download | cpython-f070cce6afebd3ef9cefb127d4e4db93881f3ec1.zip cpython-f070cce6afebd3ef9cefb127d4e4db93881f3ec1.tar.gz cpython-f070cce6afebd3ef9cefb127d4e4db93881f3ec1.tar.bz2 |
(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".
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/python-mode.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el index ec997c2..e327ad9 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -2604,8 +2604,8 @@ moves to the end of the block (& does not set mark or display a msg)." (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 @@ does not include blank lines, comments, or continuation lines." (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) |