[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#45341: [PATCH] Make python-mode fontify more assignment statements
From: |
Dario Gjorgjevski |
Subject: |
bug#45341: [PATCH] Make python-mode fontify more assignment statements |
Date: |
Sun, 20 Dec 2020 17:25:16 +0100 |
The current implementation in python-mode fontifies only basic
assignment statements. It makes mistakes on or entirely misses more
complex ones such as
[a, b, c] = 1, 2, 3
a, *b, c = range(10)
inst.a, inst.b, inst.c = 'foo', 'bar', 'baz'
(a, b, *c, d) = x, *y = 5, 6, 7, 8, 9
The patch attached below extends the fontification to work correctly
with all these cases. I tested things as well as I could, but would
appreciate further testing.
0001-Make-python-mode-fontify-more-assignment-statements.patch
Description: Patch to make python-mode fontify more assignment statements
Best regards,
Dario
--
$ keyserver=hkps://hkps.pool.sks-keyservers.net
$ keyid=744A4F0B4F1C9371
$ gpg --keyserver $keyserver --search-keys $keyid
- bug#45341: [PATCH] Make python-mode fontify more assignment statements,
Dario Gjorgjevski <=