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>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#78838: closed ([PATCH] 31.0.50; python-ts-mode fontifies
 constructors as functions, not types)
Date: Sat, 21 Jun 2025 08:20:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 21 Jun 2025 11:18:51 +0300
with message-id <86cyaxjyms.fsf <at> gnu.org>
and subject line Re: bug#78838: [PATCH] 31.0.50; python-ts-mode fontifies constructors as functions, not types
has caused the debbugs.gnu.org bug report #78838,
regarding [PATCH] 31.0.50; python-ts-mode fontifies constructors as functions, not types
to be marked as done.

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


-- 
78838: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78838
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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 4 (text/html, inline)]
[0002-python-ts-mode-Improve-fontification.patch (application/octet-stream, attachment)]
[Message part 6 (text/html, inline)]
[Message part 7 (message/rfc822, inline)]
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 26 days ago.

Previous Next


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