]> git.eshelyaron.com Git - emacs.git/commit
Fix Python indentation of continuation lines within parens
authorkobarity <kobarity@gmail.com>
Sun, 18 Jun 2023 14:47:25 +0000 (23:47 +0900)
committerEli Zaretskii <eliz@gnu.org>
Sat, 24 Jun 2023 12:11:39 +0000 (15:11 +0300)
commit9c2cbfa49db96eae95bb40c5fc3ce7f09781a97d
tree2c894775d3092898b6ef6cd993b66e64256aab8d
parent5b7e999e24f6cd446961ac441f69af021528623b
Fix Python indentation of continuation lines within parens

* lisp/progmodes/python.el (python-indent-context): Add a new indent
context `:inside-paren-continuation-line'.
(python-indent--calculate-indentation): Use the new indent context.
* test/lisp/progmodes/python-tests.el (python-indent-pep8-2)
(python-indent-pep8-3)
(python-indent-inside-paren-1)
(python-indent-inside-paren-2)
(python-indent-inside-paren-3)
(python-indent-inside-paren-6)
(python-indent-after-backslash-2): Change to use the new indent
context.
(python-indent-inside-paren-8)
(python-indent-inside-paren-9): New tests. (Bug#63959)
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el