GNU bug report logs - #54992
29.0.50; python.el: custom type hint in assignment statements is font-locked as a variable

Previous Next

Package: emacs;

Reported by: kobarity <kobarity <at> gmail.com>

Date: Sun, 17 Apr 2022 15:58:01 UTC

Severity: normal

Found in version 29.0.50

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 54992 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: kobarity <kobarity <at> gmail.com>
Cc: dario gjorgjevski <dario.gjorgjevski <at> gmail.com>, 54992 <at> debbugs.gnu.org
Subject: Re: bug#54992: 29.0.50; python.el: custom type hint in assignment
 statements is font-locked as a variable
Date: Sun, 17 Apr 2022 19:28:32 +0200
kobarity <kobarity <at> gmail.com> writes:

> This is caused by the font-lock rule for special cases of assignment
> statements such as '[a] = 5,'. I suggest applying the following patch
> to restrict the rule not to match type hints.

Makes sense to me; 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 and 96 days ago.

Previous Next


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