[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41684: [PATCH] Highlight typed variables in python
From: |
Konstantin Kharlamov |
Subject: |
bug#41684: [PATCH] Highlight typed variables in python |
Date: |
Sat, 13 Jun 2020 23:40:27 +0300 |
User-agent: |
Evolution 3.36.3 |
On Sat, 2020-06-13 at 23:01 +0300, Andrii Kolomoiets wrote:
> Hi Konstantin,
>
> > * progmodes/python.el (python-font-lock-keywords-maximum-decoration):
> > recognize typed variables like "foo: int = 1" as well.
>
> Good work!
>
> Any plans to recognize typed variables like "foo: List[int] = [1]" as
> well? ;-)
Thank you for the follow up! This is a good example to improve upon, I haven't
thought about it. I don't currently have plans, so if you wanted that, sure go
for it :) I'm mostly sending improvements as I work with Python at may dayjob, I
wasn't stumbling upon such construction there, so I'm not too worried just yet.
FTR: if anybody is interested why this font-lock-variable-face matters, the
color-identifiers-mode uses it to highlight identifiers in code with different
colors. Immensely helps in reading the code.