GNU bug report logs - #45679
28.0.50; python-mode variable font locking is inconsistent

Previous Next

Package: emacs;

Reported by: Doug Davis <ddavis <at> ddavis.io>

Date: Tue, 5 Jan 2021 21:08:02 UTC

Severity: normal

Found in version 28.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 #17 received at 45679 <at> debbugs.gnu.org (full text, mbox):

From: Doug Davis <ddavis <at> ddavis.io>
To: 45679 <at> debbugs.gnu.org
Subject: Re: bug#45679: 28.0.50; python-mode variable font locking is
 inconsistent
Date: Sun, 28 Feb 2021 19:47:31 -0500
Its seems that the issue pops up when a function signature includes the
trailing return type int:

#+begin_src python
def func(a, b) -> None:
    x = 5
    y = 6
#+end_src

has bad assignment font locking for "x = 5"; while this version:

#+begin_src
def func(a, b):
    x = 5
    y = 6
#+end_src

appears to have expected variable assignment font locking.




This bug report was last modified 3 years and 65 days ago.

Previous Next


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