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.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 8ff7a300d48..530eb2fb95e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -422,7 +422,7 @@
422 (string-delimiter . ,(rx (and 422 (string-delimiter . ,(rx (and
423 ;; Match even number of backslashes. 423 ;; Match even number of backslashes.
424 (or (not (any ?\\ ?\' ?\")) point 424 (or (not (any ?\\ ?\' ?\")) point
425 ;; Quotes might be preceded by a escaped quote. 425 ;; Quotes might be preceded by an escaped quote.
426 (and (or (not (any ?\\)) point) ?\\ 426 (and (or (not (any ?\\)) point) ?\\
427 (* ?\\ ?\\) (any ?\' ?\"))) 427 (* ?\\ ?\\) (any ?\' ?\")))
428 (* ?\\ ?\\) 428 (* ?\\ ?\\)
@@ -925,7 +925,7 @@ keyword
925 (back-to-indentation) 925 (back-to-indentation)
926 (python-syntax-closing-paren-p)) 926 (python-syntax-closing-paren-p))
927 (cons :inside-paren-at-closing-nested-paren start)) 927 (cons :inside-paren-at-closing-nested-paren start))
928 ;; This line starts from a opening block in its own line. 928 ;; This line starts from an opening block in its own line.
929 ((save-excursion 929 ((save-excursion
930 (goto-char start) 930 (goto-char start)
931 (when (and 931 (when (and
@@ -1641,7 +1641,7 @@ ARG move forward only one sexp, else move backwards."
1641 1641
1642(defun python-nav--lisp-forward-sexp-safe (&optional arg) 1642(defun python-nav--lisp-forward-sexp-safe (&optional arg)
1643 "Safe version of standard `forward-sexp'. 1643 "Safe version of standard `forward-sexp'.
1644When at end of sexp (i.e. looking at a opening/closing paren) 1644When at end of sexp (i.e. looking at an opening/closing paren)
1645skips it instead of throwing an error. With positive ARG move 1645skips it instead of throwing an error. With positive ARG move
1646forward only one sexp, else move backwards." 1646forward only one sexp, else move backwards."
1647 (let* ((arg (if (or (not arg) (> arg 0)) 1 -1)) 1647 (let* ((arg (if (or (not arg) (> arg 0)) 1 -1))