From unknown Fri Aug 22 01:03:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59679 <59679@debbugs.gnu.org> To: bug#59679 <59679@debbugs.gnu.org> Subject: Status: 29.0.50; python + tree-sitter: Syntax highlighting is sometimes wrong with multi line docstrings Reply-To: bug#59679 <59679@debbugs.gnu.org> Date: Fri, 22 Aug 2025 08:03:51 +0000 retitle 59679 29.0.50; python + tree-sitter: Syntax highlighting is sometim= es wrong with multi line docstrings reassign 59679 emacs submitter 59679 Matthias Paulmier severity 59679 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 29 10:11:59 2022 Received: (at submit) by debbugs.gnu.org; 29 Nov 2022 15:12:00 +0000 Received: from localhost ([127.0.0.1]:54664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p02H7-0003Tq-Aw for submit@debbugs.gnu.org; Tue, 29 Nov 2022 10:11:59 -0500 Received: from lists.gnu.org ([209.51.188.17]:56780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozzND-0007q4-BW for submit@debbugs.gnu.org; Tue, 29 Nov 2022 07:06:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozzN8-0000r3-Ag for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2022 07:05:59 -0500 Received: from smtpout1.mo3004.mail-out.ovh.net ([79.137.123.219]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozzN3-0002l0-UG for bug-gnu-emacs@gnu.org; Tue, 29 Nov 2022 07:05:56 -0500 Received: from pro2.mail.ovh.net (unknown [10.109.143.103]) by mo3004.mail-out.ovh.net (Postfix) with ESMTPS id 114DA24305B for ; Tue, 29 Nov 2022 12:05:36 +0000 (UTC) Received: from [147.210.0.105] (109.215.4.109) by DAG6EX2.emp2.local (172.16.2.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 29 Nov 2022 13:05:36 +0100 Message-ID: Date: Tue, 29 Nov 2022 13:05:29 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 To: Subject: 29.0.50; python + tree-sitter: Syntax highlighting is sometimes wrong with multi line docstrings Content-Language: en-US From: Matthias Paulmier Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [109.215.4.109] X-ClientProxiedBy: DAG4EX1.emp2.local (172.16.2.31) To DAG6EX2.emp2.local (172.16.2.52) X-Ovh-Tracer-Id: 17694924415033103012 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrtddtgddthecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhepkfffgggfvffuhfgtgfhisehtkeertddtfeejnecuhfhrohhmpeforghtthhhihgrshcurfgruhhlmhhivghruceohhgvlhhlohesmhgrthhtphhlmhdrfhhrqeenucggtffrrghtthgvrhhnpedvfeehhefhhefggeetteetffdtgfdtfeelveejhfegkeegtedthfffjeetvdegudenucfkphepuddvjedrtddrtddruddpuddtledrvdduhedrgedruddtleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehhvghllhhosehmrghtthhplhhmrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghdpoffvtefjohhsthepmhhofedttdegpdhmohguvgepshhmthhpohhuth Received-SPF: none client-ip=79.137.123.219; envelope-from=hello@mattplm.fr; helo=smtpout1.mo3004.mail-out.ovh.net X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 29 Nov 2022 10:11:56 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Steps to reproduce: - emacs -Q - find-file "foo.py" - write the following file ``` def test():      '''This is a function      It just does nothing and it's ok.      '''      pass ``` - at this point, syntax highlighting should be good - kill-buffer - find-file "foo.py" - syntax highlighting doesn't show properly (comment ends after "it'" and pass is shown with the `font-lock-doc-face') In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2022-11-23 built on 20045CLT490 Repository revision: 43060910874f46579fa190d9b5534508e4ea058e Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12013000 System Description: Ubuntu 20.04.5 LTS Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_ALL: fr_FR.UTF-8 value of $LC_CTYPE: fr_FR.UTF-8 value of $LANG: fr_FR locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-hg vc-git diff-mode vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view easy-mmode pcvs-util vc vc-dispatcher python rx project byte-opt gv bytecomp byte-compile pcase treesit cl-seq comint ansi-osc ring cl-loaddefs cl-lib ansi-color rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 67878 7612) (symbols 48 8488 0) (strings 32 25282 1967) (string-bytes 1 742048) (vectors 16 16094) (vector-slots 8 211336 10774) (floats 8 30 47) (intervals 56 389 0) (buffers 984 13)) From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 30 05:32:07 2022 Received: (at 59679) by debbugs.gnu.org; 30 Nov 2022 10:32:08 +0000 Received: from localhost ([127.0.0.1]:60119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0KNr-000792-KM for submit@debbugs.gnu.org; Wed, 30 Nov 2022 05:32:07 -0500 Received: from mail-pf1-f181.google.com ([209.85.210.181]:34542) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0KNm-00078c-9g for 59679@debbugs.gnu.org; Wed, 30 Nov 2022 05:32:06 -0500 Received: by mail-pf1-f181.google.com with SMTP id z17so11611560pff.1 for <59679@debbugs.gnu.org>; Wed, 30 Nov 2022 02:32:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=Dm8yhgbdgxgQ3WmTVZBNeTDW7smoihOZRwM5W6Wg6hc=; b=HuaiqKZOc15Jxx5KF4TmpdPHiCYuUeCBmTO/JQT8Hq4+WLlCgfcAy4TF2hmRvmmdRm vjMBL2RUMHsdhXYywh3Tqw4H5YpgW0j3CyXeuEOJoDbMoTc0gxbRMAY0udpyCX84fwCm B1K+ySzILFLiP8Z6vGPXM7djB1wktdk9LkDcWxhrFmcM3CLiz5mMwyjsjeFd7NN60zml jIjVQMvxOl/BYsBTCAl46AoEnx9rKUrfkqfpyKcs67K9T8Xop8VdwJgoUcclLC115Vui qHUi1b6y+2QdqJ4RcXeElwurAWN5jH1ozia4rNXyB9EC+VTDtxNukRhcUm1OABDWLMYI qUYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Dm8yhgbdgxgQ3WmTVZBNeTDW7smoihOZRwM5W6Wg6hc=; b=xM5Cxg6zoWn5W5h+3fnHOaXa/UM1erE4HIaAOexsc233T3rQAFGkhLldatWMHQj00e ZtGzRN+2FLQRbosU8rDF8qO72rBQ1/9iyOWl7p9rs1rkmgI717Q0nKfa68C0zJCPj1xA IqFATS4SgKNK6KLhA2MxXeama8vGmu1gSgprn6x3SMAnzxJczwGOPkICsERlUqCVoKCn YL8D6EIRYgFqtBttQqIgvmiV0wKuBPw2HHj/Ms1Xc4+qQMrdVTXX9XV2lbeCXOlhzDY7 nwBpu1I7PJecCIsjGaSnyG6RskirNuxAOrBWjB//sG18p7SfWUGyLN+gkxxinXTCTG77 jVoQ== X-Gm-Message-State: ANoB5pmEVACcNptut5pc6II2FUwUAo/bpJLtA8siCuuiXhlucMlFOa3F P0lSgP1Lrut0G67BW7lMzvTN51lQN+k= X-Google-Smtp-Source: AA0mqf69T26ULQH3NordP4QZpaKrBviJIT1hXMDLUgKQJEw+bZir49vNgQjAK9OK2zRhhCZlUlNEPA== X-Received: by 2002:aa7:9195:0:b0:574:7558:9bd6 with SMTP id x21-20020aa79195000000b0057475589bd6mr33259447pfa.80.1669804316359; Wed, 30 Nov 2022 02:31:56 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id m11-20020a170902db0b00b00172951ddb12sm1112090plx.42.2022.11.30.02.31.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Nov 2022 02:31:55 -0800 (PST) From: Yuan Fu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: bug#59679: 29.0.50; python + tree-sitter: Syntax highlighting is sometimes wrong with multi line docstrings Message-Id: <0A5115A2-73B2-41E1-9209-F4E6372AC8A2@gmail.com> Date: Wed, 30 Nov 2022 02:31:54 -0800 To: hello@mattplm.fr X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59679 Cc: 59679@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Matthias Paulmier writes: > Steps to reproduce: > - emacs -Q > - find-file "foo.py" > - write the following file > > ``` > def test(): > '''This is a function > > It just does nothing and it's ok. > ''' > pass > ``` > - at this point, syntax highlighting should be good > - kill-buffer > - find-file "foo.py" > - syntax highlighting doesn't show properly (comment ends after "it'" > and pass is shown with the `font-lock-doc-face') Hmmm, it seems the tabs in the code throws tree-sitter off and makes it parse incorrectly. But I=E2=80=99m 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? Yuan From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 30 09:07:13 2022 Received: (at 59679) by debbugs.gnu.org; 30 Nov 2022 14:07:13 +0000 Received: from localhost ([127.0.0.1]:33006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0Njv-0005dB-Ch for submit@debbugs.gnu.org; Wed, 30 Nov 2022 09:07:12 -0500 Received: from smtpout1.mo3004.mail-out.ovh.net ([79.137.123.219]:56071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0Kvf-0001OR-PI for 59679@debbugs.gnu.org; Wed, 30 Nov 2022 06:07:04 -0500 Received: from pro2.mail.ovh.net (unknown [10.109.146.39]) by mo3004.mail-out.ovh.net (Postfix) with ESMTPS id 3F62F245ED0; Wed, 30 Nov 2022 11:07:01 +0000 (UTC) Received: from [192.168.1.22] (80.13.154.175) by DAG6EX2.emp2.local (172.16.2.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Wed, 30 Nov 2022 12:07:00 +0100 Message-ID: Date: Wed, 30 Nov 2022 12:06:01 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: bug#59679: 29.0.50; python + tree-sitter: Syntax highlighting is sometimes wrong with multi line docstrings To: Yuan Fu References: <0A5115A2-73B2-41E1-9209-F4E6372AC8A2@gmail.com> Content-Language: en-US From: Matthias Paulmier In-Reply-To: <0A5115A2-73B2-41E1-9209-F4E6372AC8A2@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [80.13.154.175] X-ClientProxiedBy: DAG1EX2.emp2.local (172.16.2.2) To DAG6EX2.emp2.local (172.16.2.52) X-Ovh-Tracer-Id: 4131208234695873174 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrtdefgddvvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhepkfffgggfuffvvehfhfgjtgfgihesthekredttdefjeenucfhrhhomhepofgrthhthhhirghsucfrrghulhhmihgvrhcuoehhvghllhhosehmrghtthhplhhmrdhfrheqnecuggftrfgrthhtvghrnheptdekveevjefgtdfftedtgedvhfevgfetgfehhfdttdelveevgefhffdvtefgtdfgnecukfhppeduvdejrddtrddtrddupdektddrudefrdduheegrddujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeohhgvlhhlohesmhgrthhtphhlmhdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopegtrghsohhurhhisehgmhgrihhlrdgtohhmpdehleeijeelseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmoheftddtgedpmhhouggvpehsmhhtphhouhht X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > 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 [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.2 RCVD_IN_BL_SPAMCOP_NET RBL: Received via a relay in bl.spamcop.net [Blocked - see ] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [79.137.123.219 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [79.137.123.219 listed in wl.mailspike.net] 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Debbugs-Envelope-To: 59679 X-Mailman-Approved-At: Wed, 30 Nov 2022 09:06:54 -0500 Cc: 59679@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.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 From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 30 13:48:15 2022 Received: (at 59679) by debbugs.gnu.org; 30 Nov 2022 18:48:15 +0000 Received: from localhost ([127.0.0.1]:34455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0S7y-00026t-GG for submit@debbugs.gnu.org; Wed, 30 Nov 2022 13:48:15 -0500 Received: from smtpout1.mo528.mail-out.ovh.net ([46.105.34.251]:52255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0QIi-00078S-CZ for 59679@debbugs.gnu.org; Wed, 30 Nov 2022 11:51:12 -0500 Received: from pro2.mail.ovh.net (unknown [10.109.146.157]) by mo528.mail-out.ovh.net (Postfix) with ESMTPS id 8435A1405D1CA; Wed, 30 Nov 2022 17:51:09 +0100 (CET) Received: from [192.168.1.22] (80.13.154.175) by DAG6EX2.emp2.local (172.16.2.52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Wed, 30 Nov 2022 17:51:09 +0100 Message-ID: <50e9cf1b-736e-51cd-9728-7ba0d49d1a56@mattplm.fr> Date: Wed, 30 Nov 2022 17:50:41 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: bug#59679: 29.0.50; python + tree-sitter: Syntax highlighting is sometimes wrong with multi line docstrings From: Matthias Paulmier To: Yuan Fu References: <0A5115A2-73B2-41E1-9209-F4E6372AC8A2@gmail.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [80.13.154.175] X-ClientProxiedBy: DAG8EX1.emp2.local (172.16.2.81) To DAG6EX2.emp2.local (172.16.2.52) X-Ovh-Tracer-Id: 9943103555947745942 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrtdefgdelvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhepkfffgggfuffhvfevfhgjtgfgihesthekredttdefjeenucfhrhhomhepofgrthhthhhirghsucfrrghulhhmihgvrhcuoehhvghllhhosehmrghtthhplhhmrdhfrheqnecuggftrfgrthhtvghrnhepleffgeekkedtkeeulefgffelgeefuddvkefhvddvgfevgeeukeeijeekuddtffeknecukfhppeduvdejrddtrddtrddupdektddrudefrdduheegrddujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeohhgvlhhlohesmhgrthhtphhlmhdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopegtrghsohhurhhisehgmhgrihhlrdgtohhmpdehleeijeelseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehvdekpdhmohguvgepshhmthhpohhuth X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 59679 X-Mailman-Approved-At: Wed, 30 Nov 2022 13:48:10 -0500 Cc: 59679@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 02 00:08:25 2022 Received: (at 59679-done) by debbugs.gnu.org; 2 Dec 2022 05:08:25 +0000 Received: from localhost ([127.0.0.1]:44100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0yHh-0007Sg-CS for submit@debbugs.gnu.org; Fri, 02 Dec 2022 00:08:25 -0500 Received: from mail-pf1-f169.google.com ([209.85.210.169]:35426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0yHg-0007SY-6p for 59679-done@debbugs.gnu.org; Fri, 02 Dec 2022 00:08:24 -0500 Received: by mail-pf1-f169.google.com with SMTP id l127so3265479pfl.2 for <59679-done@debbugs.gnu.org>; Thu, 01 Dec 2022 21:08:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=oyDzZZKoWwxkXjZzAMFLVDCS5KVhA/XV6zYoyY5aELg=; b=RWKGcXFKOMYMFiRKhGePEZi243mRQXuhArrYzp09yTUxribCBaFhRRjpAli9oHjrPL aAyagEbdhw3S1QWqpnI77mxBcngR7Qsi3mKpugxMzc+nnquEnZC+zA87nhGcJdtr52Tn x7qJcUropH3+EA5JVwdb9MOnbT9hHyO3EqorAW43X5rj2Y2OwKkE5VZkU8c0wgW1gLcP uKLkLUDIy718wl1E8Gzi+0HsPVCo2MYPoNH0OpgZrWMal6nabAv0rRlRVebsC/p3chex lGI96QF+vNW0Xt4qk8V6cnNROnkV0uGlckd/KJLYO7gFvRHblC03WsQcC9a0nMkGi3ro S0Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oyDzZZKoWwxkXjZzAMFLVDCS5KVhA/XV6zYoyY5aELg=; b=ROz+/X+PBZS5byIveZGP9IQ661aisSaoUqG1WbIZoNUdgoLCDrGZ5CHwDHqvgRmkFu +rJGiuylnHRxFBHfT1YVvLGxzuZx7XmIi1hYQT6yWRa5/H5IJydCGuBtciBoAnZYRojE YQtj5pYTXVU0hosycfIcH3fRcatMbvTqWlG/tpOsWEQDZ9sDuu7pmLFkuZ4HO8xnCNeZ yPYzO/l8l6zRdJimqkP7fJj6TZygtVrfKBWJyrxpUbxKlfpwpRO6KRsqxBOT6U4oMEk1 vwRZpbNvr0txKVXPj/gsLPUhPBjyTw+J1TubO+aoaG+zIsQJAL4Sr4LNpCGuiwbd4mva 03Xg== X-Gm-Message-State: ANoB5pnScUxy64fDoesbs9qWkiHYjXq4HYUgewQrg50iUQdZjWzi/ruN 5OH5kCL+aR1IRsgYudI5wGAu9TgSZ/DVzQ== X-Google-Smtp-Source: AA0mqf4HrMSD1ZX1n2kotCIoFSYyzrrZoiBc0xsaOtJMpfCFO++n2OeSMTlN/fAawhZNlvBeNZhB7Q== X-Received: by 2002:a63:ec45:0:b0:470:4320:ef39 with SMTP id r5-20020a63ec45000000b004704320ef39mr43967466pgj.381.1669957698381; Thu, 01 Dec 2022 21:08:18 -0800 (PST) Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id z14-20020a1709027e8e00b00188c04258c9sm4535031pla.52.2022.12.01.21.08.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Dec 2022 21:08:17 -0800 (PST) From: Yuan Fu Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: bug#59679: 29.0.50; python + tree-sitter: Syntax highlighting is sometimes wrong with multi line docstrings Message-Id: <12F6662A-67B3-4CD9-ADE3-56F90F191512@gmail.com> Date: Thu, 1 Dec 2022 21:08:16 -0800 To: hello@mattplm.fr X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 59679-done Cc: 59679-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Matthias Paulmier writes: > 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=E2=80=99m 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. Don=E2=80=99t be sorry :-) Thanks for reporting the bug! I=E2=80=99m = closing this report. Yuan From unknown Fri Aug 22 01:03:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 30 Dec 2022 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator