unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stan Staykov <id@stanstaykov.com>
To: 58814@debbugs.gnu.org
Subject: bug#58814: Python.el major mode syntax highlighting not working
Date: Thu, 27 Oct 2022 09:18:13 +0300	[thread overview]
Message-ID: <3757c99f-7489-49cc-13dc-fd5e938c0fd9@stanstaykov.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 807 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1409 bytes --]

[-- Attachment #2: Screenshot from 2022-10-26 17-28-42.png --]
[-- Type: image/png, Size: 81283 bytes --]

             reply	other threads:[~2022-10-27  6:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-27  6:18 Stan Staykov [this message]
2022-11-13 14:17 ` bug#58814: Python.el major mode syntax highlighting not working Laurence Warne
2022-11-13 15:23   ` Stan Staykov
2022-11-15  4:01     ` Stefan Kangas
2022-11-21 15:17       ` Stan Staykov
2022-11-24 19:51         ` Stefan Kangas

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3757c99f-7489-49cc-13dc-fd5e938c0fd9@stanstaykov.com \
    --to=id@stanstaykov.com \
    --cc=58814@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).