python-ts-mode: Highlight default parameters

* lisp/progmodes/python.el (python--treesit-settings):
Highlight default parameters (bug#67703).
This commit is contained in:
Maciej Kalandyk 2023-12-11 01:15:34 +02:00 committed by Dmitry Gutov
parent 23c06c7c30
commit eace9e1122

View file

@ -1114,7 +1114,8 @@ fontified."
name: (identifier) @font-lock-function-name-face) name: (identifier) @font-lock-function-name-face)
(class_definition (class_definition
name: (identifier) @font-lock-type-face) name: (identifier) @font-lock-type-face)
(parameters (identifier) @font-lock-variable-name-face)) (parameters (identifier) @font-lock-variable-name-face)
(parameters (default_parameter name: (identifier) @font-lock-variable-name-face)))
:feature 'function :feature 'function
:language 'python :language 'python