]> git.eshelyaron.com Git - emacs.git/commit
Improve fontification of Python assignments with type hints
authorkobarity <kobarity@gmail.com>
Sat, 24 Feb 2024 14:11:02 +0000 (23:11 +0900)
committerEshel Yaron <me@eshelyaron.com>
Thu, 23 May 2024 07:38:47 +0000 (09:38 +0200)
commit3362f7bbe816deeb9d8dde31e9189e85b43bcbd2
tree54d6448bb68a59b31c3dfb92e1bac3536c42e2ca
parentb2c8f14e8264bd6bd209f02ac5514f7a93b32e5c
Improve fontification of Python assignments with type hints

* lisp/progmodes/python.el (python-font-lock-keywords-maximum-decoration):
Fontify type hints of assignment statement.  (Bug#69357)
* test/lisp/progmodes/python-tests.el
(python-font-lock-assignment-statement-11)
(python-font-lock-assignment-statement-12)
(python-font-lock-assignment-statement-13)
(python-font-lock-assignment-statement-18): Add fontification of type
hints.
(python-font-lock-assignment-statement-19): New test.

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