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, 2 insertions, 5 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 6fc05b246a6..032a17c52ff 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -6018,8 +6018,7 @@ point's current `syntax-ppss'."
6018 (let ((counter 1) 6018 (let ((counter 1)
6019 (indentation (current-indentation)) 6019 (indentation (current-indentation))
6020 (backward-sexp-point) 6020 (backward-sexp-point)
6021 (re (concat "[uU]?[rR]?" 6021 (re "[uU]?[rR]?[\"']"))
6022 (python-rx string-delimiter))))
6023 (when (and 6022 (when (and
6024 (not (python-info-assignment-statement-p)) 6023 (not (python-info-assignment-statement-p))
6025 (looking-at-p re) 6024 (looking-at-p re)
@@ -6040,9 +6039,7 @@ point's current `syntax-ppss'."
6040 backward-sexp-point)) 6039 backward-sexp-point))
6041 (setq last-backward-sexp-point 6040 (setq last-backward-sexp-point
6042 backward-sexp-point)) 6041 backward-sexp-point))
6043 (looking-at-p 6042 (looking-at-p re))))
6044 (concat "[uU]?[rR]?"
6045 (python-rx string-delimiter))))))
6046 ;; Previous sexp was a string, restore point. 6043 ;; Previous sexp was a string, restore point.
6047 (goto-char backward-sexp-point) 6044 (goto-char backward-sexp-point)
6048 (cl-incf counter)) 6045 (cl-incf counter))