diff options
| author | Po Lu | 2023-03-28 09:41:22 +0800 |
|---|---|---|
| committer | Po Lu | 2023-03-28 09:41:22 +0800 |
| commit | 64206ee3af9b59da9591aae400439bdea2cda09f (patch) | |
| tree | 88c333f058f0afac551daca0d8cf2f2e9d8012ea /lisp/progmodes/python.el | |
| parent | 05f3f9c1c09c3e7a4d9c1d9ac16a34742a4124c1 (diff) | |
| parent | 66b4394461589d0db8690b7971000f687bd3ad57 (diff) | |
| download | emacs-64206ee3af9b59da9591aae400439bdea2cda09f.tar.gz emacs-64206ee3af9b59da9591aae400439bdea2cda09f.zip | |
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 2fe88323c35..bbabce80b4d 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -5854,7 +5854,14 @@ statement." | |||
| 5854 | (save-excursion | 5854 | (save-excursion |
| 5855 | (python-nav-beginning-of-statement) | 5855 | (python-nav-beginning-of-statement) |
| 5856 | (when (and (not (python-syntax-context-type)) | 5856 | (when (and (not (python-syntax-context-type)) |
| 5857 | (looking-at (python-rx dedenter))) | 5857 | (looking-at (python-rx dedenter)) |
| 5858 | ;; Exclude the first "case" in the block. | ||
| 5859 | (not (and (string= (match-string-no-properties 0) | ||
| 5860 | "case") | ||
| 5861 | (save-excursion | ||
| 5862 | (back-to-indentation) | ||
| 5863 | (python-util-forward-comment -1) | ||
| 5864 | (equal (char-before) ?:))))) | ||
| 5858 | (point)))) | 5865 | (point)))) |
| 5859 | 5866 | ||
| 5860 | (defun python-info-line-ends-backslash-p (&optional line-number) | 5867 | (defun python-info-line-ends-backslash-p (&optional line-number) |