[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#55572: Properly indent Python PEP634 match/case blocks
From: |
Lele Gaifax |
Subject: |
bug#55572: Properly indent Python PEP634 match/case blocks |
Date: |
Sun, 22 May 2022 11:03:22 +0200 |
Hi,
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.
All the best,
ciao, lele.
0001-Properly-indent-Python-PEP634-match-case-blocks.patch
Description: Text Data
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele@metapensiero.it | -- Fortunato Depero, 1929.
- bug#55572: Properly indent Python PEP634 match/case blocks,
Lele Gaifax <=