GNU bug report logs - #59679
29.0.50; python + tree-sitter: Syntax highlighting is sometimes wrong with multi line docstrings

Previous Next

Package: emacs;

Reported by: Matthias Paulmier <hello <at> mattplm.fr>

Date: Tue, 29 Nov 2022 15:12:01 UTC

Severity: normal

Found in version 29.0.50

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: Matthias Paulmier <hello <at> mattplm.fr>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 59679 <at> debbugs.gnu.org
Subject: bug#59679: 29.0.50; python + tree-sitter: Syntax highlighting is sometimes wrong with multi line docstrings
Date: Wed, 30 Nov 2022 17:50:41 +0100
On 30/11/2022 12:06, Matthias Paulmier wrote:
>
>> Hmmm, it seems the tabs in the code throws tree-sitter off and makes it
>> parse incorrectly. But I’m not sure if the tabs are in your code or they
>> are added by the email provider. Do you expect the code to contain tabs?
>
> Hello Yuan,
>
> Thank you for looking at the issue.
>
> The actual file doesn't contain any tabs (they are 4 spaces indent), 
> must be my email client trying to format it.
>
> After reflecting a bit, I'm not sure it is related in any way to 
> treesitter. I'm not even sure python + treesitter is a thing in emacs 
> in 29.0.50 (not according to etc/NEWS at least).
>
> I can just confirm that versions <28.2 don't show this issue, that's 
> why I thought about treesitter.
>
> -- 
> Matthias


Hello again.

Turns out I had a slightly out of date version (from last week). I 
recompiled and don't have this problem anymore.

Seems to have been resolved in fc9d7b3d04.

Sorry for the confusion.

--

Matthias





This bug report was last modified 2 years and 235 days ago.

Previous Next


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