GNU bug report logs - #78838
[PATCH] 31.0.50; python-ts-mode fontifies constructors as functions, not types

Previous Next

Package: emacs;

Reported by: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>

Date: Thu, 19 Jun 2025 13:49:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

To reply to this bug, email your comments to 78838 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#78838; Package emacs. (Thu, 19 Jun 2025 13:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 19 Jun 2025 13:49:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
To: bug-gnu-emacs <at> gnu.org
Cc: Yuan Fu <casouri <at> gmail.com>
Subject: [PATCH] 31.0.50; python-ts-mode fontifies constructors as functions,
 not types
Date: Thu, 19 Jun 2025 15:47:50 +0200
[Message part 1 (text/plain, inline)]
Hey everyone.

When using python-ts-mode to write or read code, I've noticed it has a few inconsistencies:

1. type-constructors are fontified as regular functions, not the type they represent.
2. typed default parameters are not fontified as variables
3. kwarg arguments are not fontified either

Attached is a patch which fixes this :)


—
Kind Regards
Jostein Kjønigsen

[Message part 2 (text/html, inline)]
[0002-python-ts-mode-Improve-fontification.patch (application/octet-stream, attachment)]
[Message part 4 (text/html, inline)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 21 Jun 2025 08:20:02 GMT) Full text and rfc822 format available.

Notification sent to Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>:
bug acknowledged by developer. (Sat, 21 Jun 2025 08:20:02 GMT) Full text and rfc822 format available.

Message #10 received at 78838-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
Cc: casouri <at> gmail.com, 78838-done <at> debbugs.gnu.org
Subject: Re: bug#78838: [PATCH] 31.0.50;
 python-ts-mode fontifies constructors as functions, not types
Date: Sat, 21 Jun 2025 11:18:51 +0300
> Cc: Yuan Fu <casouri <at> gmail.com>
> From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
> Date: Thu, 19 Jun 2025 15:47:50 +0200
> 
> When using python-ts-mode to write or read code, I've noticed it has a few inconsistencies:
> 
> 1. type-constructors are fontified as regular functions, not the type they represent.
> 2. typed default parameters are not fontified as variables
> 3. kwarg arguments are not fontified either
> 
> Attached is a patch which fixes this :)

Thanks, installed on the master branch, and closing the bug.




This bug report was last modified 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.