Re: nano-8.7.1 highlights the word "match" in a re.match() call in Python

Benno Schulenberg <[email protected]> Wed, 11 Feb 2026 16:53:05 +0100
Newsgroups gmane.editors.nano.devel
Message-ID <[email protected]>
[Please learn to write subject lines that concisely summarize the
content of your email.]

Op 11-02-2026 om 15:17 schreef Stanislaw Majewski:
> After my last message I noticed a quick response in updating nano to a version 
> 8.7.1 with fixed syntax highlight, however there's still a small issue with it 
> when using pythons regular expression library with particular function - 
> re.match().
Okay.  Fixed in master by requiring a blank after the word "match".

However, this will still colorize the word "match" when it is used
as a variable, which is something that occurs regularly:

     match = re.match(r'expression', somevariable)

(For what it's worth: my installed version of vim highlights both
occurrences of "match" in the above line.  My installed version of
emacs does not seem to know the keywords `match` and `case` yet.)


Benno
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmmMpeEFAwAAAAAACgkQUUu+Lrjhlh+M
rA/+NMwEFcx3ZuvbqbwTQG/w4yH1WoT1kz5lCSdDtJIc3eB5UJk3XqMg9zdWJGjLPOtjznUNeI8J
6aZLIX0bUFGmXoeCMfkVV+rUvJs9+1z0UZJOBTaYszOSnLMMSZetdnM4xo0xPJ6kRuQG3h2nMMBJ
cg17zjvlqRitZX+Nc9Xxaz0TGFqG2LvUjrie0uFfH7EW131RRJa7kDaPDecpOJUdfH8iEhkKjIMM
S1209EVv3Vj1YYWXMQ7bsv4sfnoZbHyHQQWyVBujn6RLlcaCbsIh/KhHQ+Q55ivBsitVRYuWvRCx
Exu9xFmV+pulGv+lgw+e+GDqTQqkMUm4ETjqFGgnQQUH+OpAqxG8JN+Ha4s7gQHcU49xXoISwm6l
N+AcGxK0OnACgO830Pf0fF/WqzINSb+IUpmNKJuW41GSDV85+O+ozdi8CAWDkXhbXTqfqCK0mjNn
3QeX7VPC5CbavTR7KN37vht5G848Vzc5lCNx23UUi8PFk4PPTF5BkETDyPhbN+TXGy48n1SpDomf
rCMvjkr8kfvEtXfT54gFLiAZVYUbu9rg7k6ZgXo619bzyL615AmmQgJfa3STcp1b6n1cqPTc9FKM
olAcBYw73aai5N63EsPFfpCtiENvoTXdDo+9TZiGNvUZt6SQitU48ybVbnmfetJ6YrwbPzFGnfcT
g9E=
=AYfP
-----END PGP SIGNATURE-----