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

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

bug#46233: 28.0.50; python-mode font-lock assignment issues


From: Михаил Панарин
Subject: bug#46233: 28.0.50; python-mode font-lock assignment issues
Date: Mon, 1 Feb 2021 13:55:01 +0200

emacs-version: "GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.17.4)
 of 2021-01-22"

Sometimes assignments are not fontified or fontified incorrectly.
Steps to reproduce:
1. Create a python file with contents
> def foo(bar: int) -> str:
>     spam = bar
>     eggs = f'lkjahsd {spam}'
>     return eggs
>
>
> def foo2(bar: int):
>     spam = bar
>     eggs = f'lkjahsd {spam}'
>     return eggs
>
>
> def foo3(bar):
>     spam = bar
>     eggs = f'lkjahsd {spam}'
>     return eggs

2. Open the file with emacs -Q

You will see that variables `spam` and `bar` are highlighted differently
in all 3 cases.
`spam`:
  not highlighted at all in cases `foo` and `foo2`
`bar`:
  not highlighted correctly in cases `foo` and `foo3`

Best regards,
Mykhailo

reply via email to

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