bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#67703: Fix python-ts-mode syntax higlighting as to account for defau


From: Dmitry Gutov
Subject: bug#67703: Fix python-ts-mode syntax higlighting as to account for default arguments
Date: Mon, 11 Dec 2023 01:16:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

Version: 29.2

On 10/12/2023 18:35, Maciej Kalandyk wrote:
Sorry for that, i am quite new to git.
Attaching patch with only important parts

patch.patch

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 4b940b3..b625948 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1121,7 +1121,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

Thanks! Installed.





reply via email to

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