[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55572: Properly indent Python PEP634 match/case blocks
From: |
Lars Ingebrigtsen |
Subject: |
bug#55572: Properly indent Python PEP634 match/case blocks |
Date: |
Sun, 22 May 2022 13:23:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Lele Gaifax <lele@metapensiero.it> writes:
> PEP634, introduced in Python 3.10, added two new keywords, "match"
> and "case". Commit 139042eb8629e6fd49b2c3002a8fc4d1aabd174d added them to the
> font-lock machinery, but missed the opportunity to configure them as
> block-starter as well.
>
> The attached patch does that, adding also two simple indentation tests.
Thanks; pushed to Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no