diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 630250c15c3..ccf78e13148 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2076,10 +2076,16 @@ of the statement." | |||
| 2076 | (goto-char (+ (point) | 2076 | (goto-char (+ (point) |
| 2077 | (python-syntax-count-quotes | 2077 | (python-syntax-count-quotes |
| 2078 | (char-after (point)) (point)))) | 2078 | (char-after (point)) (point)))) |
| 2079 | (setq last-string-end | 2079 | (setq |
| 2080 | (or (re-search-forward | 2080 | last-string-end |
| 2081 | (rx (syntax string-delimiter)) nil t) | 2081 | (or (if (eq t (nth 3 (syntax-ppss))) |
| 2082 | (goto-char (point-max))))))) | 2082 | (re-search-forward |
| 2083 | (rx (syntax string-delimiter)) nil t) | ||
| 2084 | (ignore-error scan-error | ||
| 2085 | (goto-char string-start) | ||
| 2086 | (python-nav--lisp-forward-sexp) | ||
| 2087 | (point))) | ||
| 2088 | (goto-char (point-max))))))) | ||
| 2083 | ((python-syntax-context 'paren) | 2089 | ((python-syntax-context 'paren) |
| 2084 | ;; The statement won't end before we've escaped | 2090 | ;; The statement won't end before we've escaped |
| 2085 | ;; at least one level of parenthesis. | 2091 | ;; at least one level of parenthesis. |