From: "Михаил Панарин" <mykhailopanarin@gmail.com>
To: 46233@debbugs.gnu.org
Subject: bug#46233: 28.0.50; python-mode font-lock assignment issues
Date: Mon, 1 Feb 2021 13:55:01 +0200 [thread overview]
Message-ID: <CAKLpiix7dUhppPVkB0jUgx3gP=45Otjqz0xtxSsSboajQgJfmg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 789 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1041 bytes --]
next reply other threads:[~2021-02-01 11:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-01 11:55 Михаил Панарин [this message]
2021-02-01 13:01 ` bug#46233: 28.0.50; python-mode font-lock assignment issues Andrii Kolomoiets
2021-02-01 13:14 ` Михаил Панарин
2021-02-01 14:01 ` Михаил Панарин
2021-02-01 14:17 ` Михаил Панарин
2022-06-14 13:43 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAKLpiix7dUhppPVkB0jUgx3gP=45Otjqz0xtxSsSboajQgJfmg@mail.gmail.com' \
--to=mykhailopanarin@gmail.com \
--cc=46233@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.