|
From: | Matthias Paulmier |
Subject: | bug#59679: 29.0.50; python + tree-sitter: Syntax highlighting is sometimes wrong with multi line docstrings |
Date: | Wed, 30 Nov 2022 12:06:01 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |