(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".
This commit is contained in:
parent
db2e3e3c9c
commit
f070cce6af
|
@ -2604,8 +2604,8 @@ moves to the end of the block (& does not set mark or display a msg)."
|
||||||
(while (and
|
(while (and
|
||||||
(setq last-pos (point)) ; always true -- side effect
|
(setq last-pos (point)) ; always true -- side effect
|
||||||
(py-goto-statement-below)
|
(py-goto-statement-below)
|
||||||
(> (current-indentation) initial-indent))
|
(> (current-indentation) initial-indent)
|
||||||
nil))
|
)))
|
||||||
|
|
||||||
;; else plain code line; stop at next blank line, or stmt or
|
;; else plain code line; stop at next blank line, or stmt or
|
||||||
;; indenting comment line indented <
|
;; indenting comment line indented <
|
||||||
|
@ -3341,7 +3341,8 @@ does not include blank lines, comments, or continuation lines."
|
||||||
(let ((start (point)))
|
(let ((start (point)))
|
||||||
(py-goto-beyond-final-line)
|
(py-goto-beyond-final-line)
|
||||||
(while (and
|
(while (and
|
||||||
(looking-at py-blank-or-comment-re)
|
(or (looking-at py-blank-or-comment-re)
|
||||||
|
(py-in-literal))
|
||||||
(not (eobp)))
|
(not (eobp)))
|
||||||
(forward-line 1))
|
(forward-line 1))
|
||||||
(if (eobp)
|
(if (eobp)
|
||||||
|
|
Loading…
Reference in New Issue