From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.bugs Subject: bug#59679: 29.0.50; python + tree-sitter: Syntax highlighting is sometimes wrong with multi line docstrings Date: Thu, 1 Dec 2022 21:08:16 -0800 Message-ID: <12F6662A-67B3-4CD9-ADE3-56F90F191512@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18658"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59679-done@debbugs.gnu.org To: hello@mattplm.fr Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 02 06:09:12 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p0yIR-0004iT-M9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Dec 2022 06:09:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0yIK-0003bV-Im; Fri, 02 Dec 2022 00:09:04 -0500 Original-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 1p0yIJ-0003b4-36 for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 00:09:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0yII-0007jj-Gh for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 00:09:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0yII-0007Sy-Bi for bug-gnu-emacs@gnu.org; Fri, 02 Dec 2022 00:09:02 -0500 In-Reply-To: Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2022 05:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 59679 X-GNU-PR-Package: emacs Mail-Followup-To: 59679@debbugs.gnu.org, casouri@gmail.com, hello@mattplm.fr Original-Received: via spool by 59679-done@debbugs.gnu.org id=D59679.166995770528690 (code D ref 59679); Fri, 02 Dec 2022 05:09:02 +0000 Original-Received: (at 59679-done) by debbugs.gnu.org; 2 Dec 2022 05:08:25 +0000 Original-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 Original-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 Original-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) Original-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) X-Mailer: Apple Mail (2.3696.120.41.1.1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:249699 Archived-At: 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