]> git.eshelyaron.com Git - emacs.git/commit
Make "case" keyword a dedenter in Python
authorkobarity <kobarity@gmail.com>
Fri, 10 Mar 2023 05:26:22 +0000 (14:26 +0900)
committerDmitry Gutov <dgutov@yandex.ru>
Sat, 11 Mar 2023 13:18:47 +0000 (15:18 +0200)
commitc0cf69f7a17b657c784518434e1a049ce6970a43
tree762ed7c3862345a08310a65940c199e1aff78f7b
parentdb178517ce73618f7a659e355639893748db2e45
Make "case" keyword a dedenter in Python

* lisp/progmodes/python.el (python-rx): Add "case" to dedenter.
(python-info-dedenter-opening-block-positions): Add "case" to pairs.
* test/lisp/progmodes/python-tests.el (python-indent-dedenters-9):
New test.
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el