all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthias Paulmier <hello@mattplm.fr>
To: Yuan Fu <casouri@gmail.com>
Cc: 59679@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 12:06:01 +0100	[thread overview]
Message-ID: <f8db9127-8061-06f3-9e3f-793e3fac66b0@mattplm.fr> (raw)
In-Reply-To: <0A5115A2-73B2-41E1-9209-F4E6372AC8A2@gmail.com>


> 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





  reply	other threads:[~2022-11-30 11:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-29 12:05 bug#59679: 29.0.50; python + tree-sitter: Syntax highlighting is sometimes wrong with multi line docstrings Matthias Paulmier
2022-11-30 10:31 ` Yuan Fu
2022-11-30 11:06   ` Matthias Paulmier [this message]
2022-11-30 16:50     ` Matthias Paulmier
2022-12-02  5:08 ` Yuan Fu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8db9127-8061-06f3-9e3f-793e3fac66b0@mattplm.fr \
    --to=hello@mattplm.fr \
    --cc=59679@debbugs.gnu.org \
    --cc=casouri@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.