]> git.eshelyaron.com Git - emacs.git/commit
Add font-locking for typed parameters in python-ts-mode (bug#70665)
authorNoah Peart <noah.v.peart@gmail.com>
Tue, 30 Apr 2024 09:55:18 +0000 (02:55 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:32:07 +0000 (18:32 +0200)
commit135a6c88568929f6af2506b98bd90da996280b3a
tree60baa9a6bb9fa99f0b6a33fd474e4811bbb9870d
parentfae54e4524a52c12ad0349108adbaacbb19a834c
Add font-locking for typed parameters in python-ts-mode (bug#70665)

* lisp/progmodes/python.el (python--treesit-settings): Add
tree-sitter font-locking rule for typed parameters.
* test/lisp/progmodes/python-tests.el
(python-ts-mode-types-face-1): Test for
font-lock-variable-name-face in typed parameter.

(cherry picked from commit 0f92d433d2b806eb58a9a4c0197344b08ea5ae65)
lisp/progmodes/python.el
test/lisp/progmodes/python-tests.el