]> git.eshelyaron.com Git - emacs.git/commit
Improve indenting "case" in Python
authorkobarity <kobarity@gmail.com>
Sat, 25 Mar 2023 13:59:05 +0000 (22:59 +0900)
committerDmitry Gutov <dgutov@yandex.ru>
Sun, 26 Mar 2023 02:03:07 +0000 (05:03 +0300)
commit8f42db010d15efa21fb9007e61daedbe1e2dfa53
tree66a42da235a2becacc7ebd3572c240b592fb0f94
parentc4d490490dc24c76fbead7941518ad503672d216
Improve indenting "case" in Python

* lisp/progmodes/python.el (python-info-dedenter-statement-p): Do not
consider the first "case" in the block as dedenter.
* test/lisp/progmodes/python-tests.el
(python-info-dedenter-opening-block-positions-7)
(python-info-dedenter-statement-p-6): New tests. (Bug#62092)
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el