]> git.eshelyaron.com Git - emacs.git/commitdiff
python-ts-mode: Highlight default parameters
authorMaciej Kalandyk <m.kalandyk@outlook.com>
Sun, 10 Dec 2023 23:15:34 +0000 (01:15 +0200)
committerDmitry Gutov <dmitry@gutov.dev>
Sun, 10 Dec 2023 23:34:41 +0000 (01:34 +0200)
* lisp/progmodes/python.el (python--treesit-settings):
Highlight default parameters (bug#67703).

lisp/progmodes/python.el

index a794457619657ea4563681e010c38a37c3ab3752..7c5c20608bd9d88b39d3d78e71439a0d24be9a5e 100644 (file)
@@ -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