GNU bug report logs - #67703
Fix python-ts-mode syntax higlighting as to account for default arguments

Previous Next

Package: emacs;

Reported by: Maciej Kalandyk <m.kalandyk <at> outlook.com>

Date: Fri, 8 Dec 2023 04:43:01 UTC

Severity: normal

Tags: patch

Fixed in version 29.2

Done: Dmitry Gutov <dmitry <at> gutov.dev>

Bug is archived. No further changes may be made.

Full log


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

From: Yuan Fu <casouri <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Maciej Kalandyk <m.kalandyk <at> outlook.com>
Cc: 67703 <at> debbugs.gnu.org
Subject: Re: bug#67703: Fix python-ts-mode syntax higlighting as to account
 for default arguments
Date: Sun, 10 Dec 2023 02:15:36 -0800

On 12/9/23 10:19 PM, Eli Zaretskii wrote:
> [Please use Reply All to keep the bug tracker on the CC list.]
>
> Forwarding to the bug tracker:
>
>> From: Maciej Kalandyk <m.kalandyk <at> outlook.com>
>> Date: Sun, 10 Dec 2023 00:57:15 +0000
>> msip_labels:
>>
>> in this code without patch
>>
>> def test(x=None):
>>       return x
>>
>> x=None in function signature won't be highlighted as definition
Ok, the fix makes sense. Basically, in such a function:


"a" is fontified but "b" isn't, the patch will fontify "b".

One thing though, the patch contains some indentation changes to 
unrelated code.

Yuan




This bug report was last modified 1 year and 164 days ago.

Previous Next


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