From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#67262: python-ts-mode cannot identify triple-quoted-strings Date: Sun, 19 Nov 2023 00:52:06 +0200 Message-ID: <9bfc5e6f-3612-115f-a59d-35ad629bdf9e@gutov.dev> References: <66A741A1-38B8-40C9-BE84-AF99F74A079F@gmail.com> <838r6vm3dj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15686"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: 67262@debbugs.gnu.org To: JD Smith , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 18 23:53:24 2023 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 1r4UBn-0003qt-BO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Nov 2023 23:53:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r4UBU-0007vw-21; Sat, 18 Nov 2023 17:53: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 1r4UBS-0007vm-1U for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2023 17:53:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r4UBR-0000TP-Q6 for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2023 17:53:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r4UBS-0007HK-Ce for bug-gnu-emacs@gnu.org; Sat, 18 Nov 2023 17:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Nov 2023 22:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67262 X-GNU-PR-Package: emacs Original-Received: via spool by 67262-submit@debbugs.gnu.org id=B67262.170034794527933 (code B ref 67262); Sat, 18 Nov 2023 22:53:02 +0000 Original-Received: (at 67262) by debbugs.gnu.org; 18 Nov 2023 22:52:25 +0000 Original-Received: from localhost ([127.0.0.1]:49631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4UAq-0007GS-NM for submit@debbugs.gnu.org; Sat, 18 Nov 2023 17:52:24 -0500 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:60401) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r4UAl-0007GA-DN for 67262@debbugs.gnu.org; Sat, 18 Nov 2023 17:52:23 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 382AB32007F1; Sat, 18 Nov 2023 17:52:11 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 18 Nov 2023 17:52:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1700347930; x=1700434330; bh=lBDF5ma+0dk1QKWQvy4XVo0nAptBy9Gifp+ AKpgP0XA=; b=TSngVlDQYmx7V8x57oQE4VP9RAlEfSHOVR9nY1XzA+Tw7IvwH8F 5AQmdAUR6xBch4cR8tEQgvNsFU0KjS+vwsA1jdxrdnapWyD6Od2/h80eH+60phZn gHWqibvhmVZ1vDaqNAyZz6I/+4I3hgdW06yYJb/w4jekFOQ8svbhLRn/0xX4Ql6p Yr8Wa4gi2ZSfK5or06+M2RuIp3gy9YWwwZ0oKmt7UWNiRpnoGu96Fj4afuP6lxWN IIXOOj07lKeww4sHbPdh4rbT/N94c3iw1D58+9uShHFh/Ws9HAPFrqi5KwFDMUoj VmlvDuNzDjddiFCC+vSxD292IxvOPdVUUYg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1700347930; x=1700434330; bh=lBDF5ma+0dk1QKWQvy4XVo0nAptBy9Gifp+ AKpgP0XA=; b=DqeBZLkngKnZSd9eSsByUdXJAzs6ePiEtWMyu2mS8zRMURqmp0c CNGF7JqCChIRKv/4ayz1zCMjxJ+6fPZn2mqAqi9mw/VwuJrHJnBtnLsQUPbBdHWZ HOg7xqSWXGUP3EHkA4BoweA8QBu6QXV5fz2r5jfmBL8RMBxEslL3zTaRSYurtaJd 6Zqea/rhxT2wLUVpuXKHEniM3XhaaTMvCbqZl4tnK5LoLfiEE8ve10xyc5kCWSTB AMy56GvY8KGN6QBq2NAsqbTFHXBQMebyfpC5e8kgivySpDdpYI1ycbRaAB2+pUJp fGV2IhYvK1VP304eMNlzmY3Pa26kE5hm6BA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudegfedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhephfffheeljeffgeffueeghfekkedtfffgheejvdegjeettdduheeufffggfef jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 18 Nov 2023 17:52:09 -0500 (EST) Content-Language: en-US In-Reply-To: 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:274573 Archived-At: On 18/11/2023 19:18, JD Smith wrote: >   (setq-local syntax-propertize-function > python-syntax-propertize-function) This is not a bad choice, but even better would be to write a s-p-f based on the tree-sitter parse tree. There are examples in ruby-ts-mode and js-ts-mode.