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

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

bug#67703: closed (Fix python-ts-mode syntax higlighting as to account f


From: GNU bug Tracking System
Subject: bug#67703: closed (Fix python-ts-mode syntax higlighting as to account for default arguments)
Date: Sun, 10 Dec 2023 23:18:02 +0000

Your message dated Mon, 11 Dec 2023 01:16:59 +0200
with message-id <61b78f48-c6a5-677e-fa22-ed690240df3f@gutov.dev>
and subject line Re: bug#67703: Fix python-ts-mode syntax higlighting as to 
account for default arguments
has caused the debbugs.gnu.org bug report #67703,
regarding Fix python-ts-mode syntax higlighting as to account for default 
arguments
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
67703: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67703
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Fix python-ts-mode syntax higlighting as to account for default arguments Date: Fri, 08 Dec 2023 05:36:52 +0100
Tags: patch


Patch fixes lack of syntax highlighting for default arguments using
python-ts-mode

In GNU Emacs 29.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.37, cairo version 1.16.0)
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: Guix System

Configured using:
 'configure
 
CONFIG_SHELL=/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash
 SHELL=/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash
 
--prefix=/gnu/store/475y8j60g7ixylvfh3viwnfl6i5j4fcj-emacs-next-tree-sitter-29.0.91
 --enable-fast-install --with-modules --with-cairo
 --with-native-compilation --disable-build-details'

Attachment: patch.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: 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.


--- End Message ---

reply via email to

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