1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-08 15:35:02 +00:00

Fix comment/else indentation problem in python-mode

* lisp/progmodes/python.el
(python-info-dedenter-opening-block-positions): Fix indentation of
"else" after a comment (bug#56742).
This commit is contained in:
Stephen Berman 2022-07-27 11:37:31 +02:00 committed by Lars Ingebrigtsen
parent 27b5ab80ec
commit dc84264f3c

View File

@ -5171,7 +5171,8 @@ likely an invalid python file."
(while (and (< (point) cur-line)
(setq no-back-indent
(or (> (current-indentation) indentation)
(python-info-current-line-empty-p))))
(python-info-current-line-empty-p)
(python-info-current-line-comment-p))))
(forward-line)))
no-back-indent)))
(setq collected-indentations