From eace9e1122601bdc2f7f03228816198ce726f8fc Mon Sep 17 00:00:00 2001 From: Maciej Kalandyk Date: Mon, 11 Dec 2023 01:15:34 +0200 Subject: [PATCH] python-ts-mode: Highlight default parameters * lisp/progmodes/python.el (python--treesit-settings): Highlight default parameters (bug#67703). --- lisp/progmodes/python.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2