bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45679: 28.0.50; python-mode variable font locking is inconsistent


From: Lars Ingebrigtsen
Subject: bug#45679: 28.0.50; python-mode variable font locking is inconsistent
Date: Mon, 16 May 2022 15:42:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Doug Davis <ddavis@ddavis.io> writes:

> 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 should now be fixed (in a patch for bug#51362) in Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]