emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 eace9e11226: python-ts-mode: Highlight default parameters


From: Dmitry Gutov
Subject: emacs-29 eace9e11226: python-ts-mode: Highlight default parameters
Date: Sun, 10 Dec 2023 18:34:54 -0500 (EST)

branch: emacs-29
commit eace9e1122601bdc2f7f03228816198ce726f8fc
Author: Maciej Kalandyk <m.kalandyk@outlook.com>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]