aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 8a99ff0434d..a42e2b2a28a 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2328,8 +2328,11 @@ of the statement."
2328 (setq 2328 (setq
2329 last-string-end 2329 last-string-end
2330 (or (if (eq t (nth 3 (syntax-ppss))) 2330 (or (if (eq t (nth 3 (syntax-ppss)))
2331 (re-search-forward 2331 (cl-loop
2332 (rx (syntax string-delimiter)) nil t) 2332 while (re-search-forward
2333 (rx (or "\"\"\"" "'''")) nil t)
2334 unless (python-syntax-context 'string)
2335 return (point))
2333 (ignore-error scan-error 2336 (ignore-error scan-error
2334 (goto-char string-start) 2337 (goto-char string-start)
2335 (python-nav--lisp-forward-sexp) 2338 (python-nav--lisp-forward-sexp)