GNU bug report logs - #78129
[PATCH] 31.0.50; python-ts-mode fontification does not handle normal python constructs

Previous Next

Package: emacs;

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

Date: Tue, 29 Apr 2025 09:42:06 UTC

Severity: normal

Tags: patch

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
To: 78129 <at> debbugs.gnu.org
Subject: bug#78129: [PATCH] 31.0.50; python-ts-mode fontification does not handle normal python constructs
Date: Tue, 29 Apr 2025 11:40:32 +0200
[Message part 1 (text/plain, inline)]
Hey everyone.

When using python-ts-mode to edit python code, there's quite a few areas where fontification is lacking, but could be provided by the treesitter syntax tree.

* Constants
* Type-names
* variable-names in for-in statements
* import-names in import statements
* variable-declarations in lambda-expressions

Attached is a patch which fixes this.

—
Kind Regards
Jostein Kjønigsen


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

This bug report was last modified 17 days ago.

Previous Next


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