diff options
author | Lele Gaifax <lele@metapensiero.it> | 2022-05-22 10:44:31 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-05-22 13:22:59 +0200 |
commit | 35d0190b0b91c085c73bbe6c2b8e93ea8288b589 (patch) | |
tree | 38ba5e3c42cf4508c4167cbf96ecb8dbbd92a2b2 /lisp/mail/emacsbug.el | |
parent | ae8b1b8fd476b8c6240c1337c0c51763d4879ac9 (diff) | |
download | emacs-35d0190b0b91c085c73bbe6c2b8e93ea8288b589.tar.gz emacs-35d0190b0b91c085c73bbe6c2b8e93ea8288b589.tar.bz2 emacs-35d0190b0b91c085c73bbe6c2b8e93ea8288b589.zip |
Properly indent Python PEP634 match/case blocks
Python 3.10 introduced the "structural pattern matching" syntax, and
commit 139042eb8629e6fd49b2c3002a8fc4d1aabd174d told font-lock about the
new keywords. This adds them also as block-start statements, to enable
proper indentation of such blocks.
* lisp/progmodes/python.el (python-rx): Add "match" and "case" as
block-start keywords.
* test/lisp/progmodes/python-tests.el (python-indent-after-match-block,
python-indent-after-case-block): New tests to verify indentation of
"match" and "case" blocks (bug#55572).
Diffstat (limited to 'lisp/mail/emacsbug.el')
0 files changed, 0 insertions, 0 deletions