]> git.eshelyaron.com Git - emacs.git/commit
Improve python-ts-mode fontification (bug#78129)
authorJostein Kjønigsen <jostein@kjonigsen.net>
Thu, 20 Mar 2025 09:39:31 +0000 (10:39 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 06:53:01 +0000 (08:53 +0200)
commit137d435a70b1067bc539b3fe5035d9399203219f
treec9625a4106be0776ef561d42140e21bb40dd4654
parent07b78dc92515f42e6660d893e53230a51b3ac20f
Improve python-ts-mode fontification (bug#78129)

Fontification based on selectors & code-conventions:

- Lambda parameters: variable declarations
- For in statements: variable declarations
- Import statements: variable declerations
- Constants: All upper case alphanumerical identifiers
- Types: CamelCase alphanumerical identifiers
- Enums: Enum-values as constants.

* lisp/progmodes/python.el:
(python--treesit-settings): Improve queries.

(cherry picked from commit 2964d51c9cd9b55e60901069c378d0e8277d60f9)
lisp/progmodes/python.el