Subject: bug#55573: 29.0.50; python.el font-locks invalid class/function names

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 22 May 2022 18:53:46 +0200

kobarity <[email-masked]> 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