GNU bug report logs - #55573
29.0.50; python.el font-locks invalid class/function names

Previous Next

Package: emacs;

Reported by: kobarity <kobarity <at> gmail.com>

Date: Sun, 22 May 2022 13:21:01 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 55573 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: kobarity <kobarity <at> gmail.com>
Cc: 55573 <at> debbugs.gnu.org
Subject: Re: bug#55573: 29.0.50; python.el font-locks invalid class/function
 names
Date: Sun, 22 May 2022 18:53:46 +0200
kobarity <kobarity <at> gmail.com> writes:

> When the following Python file is loaded using emacs -Q and M-x
> find-file, "1func" is font-locked as a function name although it is not
> a valid function name.
>
> #+begin_src python
> def 1func():
>     pass
> #+end_src
>
> Attached is my proposal to fix this issue.

Thanks; pushed to Emacs 29.

For future patches, including ChangeLog style commit messages would be
appreciated.

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




This bug report was last modified 3 years and 86 days ago.

Previous Next


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