GNU bug report logs - #58814
Python.el major mode syntax highlighting not working

Previous Next

Package: emacs;

Reported by: Stan Staykov <id <at> stanstaykov.com>

Date: Thu, 27 Oct 2022 08:32:02 UTC

Severity: normal

Tags: moreinfo

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stan Staykov <id <at> stanstaykov.com>
To: 58814 <at> debbugs.gnu.org
Subject: bug#58814: Python.el major mode syntax highlighting not working
Date: Thu, 27 Oct 2022 09:18:13 +0300
[Message part 1 (text/plain, inline)]
Using emacs 28.2 on Arch Linux.
Syntax highlighting using the default python-mode (python.el) is 
inconsistent.
Multiple users in the #emacs channel who all tested this with the -Q 
option all report the same results.

Please see attached image for the first example.

Notice how the variable 'money' for example is randomly highlighted.

Full code here: Paste.rs <https://paste.rs/K2r.py>

For the above code, when opened in emacs -Q if you go to the last 
instance of 'money' where it says 'money += bet * 2' and press RETURN 
after the end of that line, suddenly it gets highlighted, and then if 
you go to the previous instance of that and do the same, the 
highlighting of the one below disappears.

The same was confirmed by multiple users from the #emacs channel.

Please advise.

Best regards,
Stan
[Message part 2 (text/html, inline)]
[Screenshot from 2022-10-26 17-28-42.png (image/png, attachment)]

This bug report was last modified 2 years and 231 days ago.

Previous Next


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