From: Maciej Kalandyk Date: Sun, 10 Dec 2023 23:15:34 +0000 (+0200) Subject: python-ts-mode: Highlight default parameters X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=eace9e1122601bdc2f7f03228816198ce726f8fc;p=emacs.git python-ts-mode: Highlight default parameters * lisp/progmodes/python.el (python--treesit-settings): Highlight default parameters (bug#67703). --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index a7944576196..7c5c20608bd 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1114,7 +1114,8 @@ fontified." name: (identifier) @font-lock-function-name-face) (class_definition 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 :language 'python