GNU bug report logs - #55572
Properly indent Python PEP634 match/case blocks

Previous Next

Package: emacs;

Reported by: Lele Gaifax <lele <at> metapensiero.it>

Date: Sun, 22 May 2022 09:04:02 UTC

Severity: normal

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 55572 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Lele Gaifax <lele <at> metapensiero.it>
Cc: 55572 <at> debbugs.gnu.org
Subject: Re: bug#55572: Properly indent Python PEP634 match/case blocks
Date: Sun, 22 May 2022 13:23:40 +0200
Lele Gaifax <lele <at> 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




This bug report was last modified 3 years ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.