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