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, 26 Nov 2023 16:58:41 +0200 Message-ID: References: <66A741A1-38B8-40C9-BE84-AF99F74A079F@gmail.com> <838r6vm3dj.fsf@gnu.org> <9bfc5e6f-3612-115f-a59d-35ad629bdf9e@gutov.dev> <83v89qcfsb.fsf@gnu.org> <9B8C904A-3729-44AF-82F7-3BEA849F46D0@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16815"; 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 , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 26 15:59:27 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 1r7GbV-00048m-Qr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Nov 2023 15:59:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7Gb4-0006d1-H7; Sun, 26 Nov 2023 09:58:58 -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 1r7Gb2-0006cY-Tl for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 09:58:56 -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 1r7Gb2-0000jc-Li for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 09:58:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7Gb8-0001FI-CG for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 09:59: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: Sun, 26 Nov 2023 14:59: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.17010107414773 (code B ref 67262); Sun, 26 Nov 2023 14:59:02 +0000 Original-Received: (at 67262) by debbugs.gnu.org; 26 Nov 2023 14:59:01 +0000 Original-Received: from localhost ([127.0.0.1]:42558 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7Gb6-0001Eu-KH for submit@debbugs.gnu.org; Sun, 26 Nov 2023 09:59:00 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:43757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7Gb3-0001Ee-AH for 67262@debbugs.gnu.org; Sun, 26 Nov 2023 09:58:59 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 57C315C011D; Sun, 26 Nov 2023 09:58:46 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 26 Nov 2023 09:58:46 -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=fm3; t= 1701010726; x=1701097126; bh=e2xAuD7gOAUM8OfGtdae+BtjLwHNiZQBir5 buE9N3tI=; b=wvkD6ren/7P5o5OpDNrDYJ9pty8HiSjkkA3tPVK/MPpCxIFip5/ TuL4bx32Z/7KUcytaT0eFndeZO9cT+s7FNz6bdmHfVdl2GKst2O9qvLSs4fAp3b/ QuC46/GJMuQBZ1gzeLb/droXnPTXCnxGQLVOyZHAZDStNFsGlc5qbj7wcv5lAJ7O 84o8OPgcKFcjlfZcEQbKfset6LmAUkmDlSQxMJZ17z/G/DMZoqn6jCtHeRCH+Hmr uFryKivWml82phixUcM6kQf0KqrX2ggDLzSWH/IoMr35oB9Nm1D/TW6xrSOfhEjP SNNXW4ba7it2XpHkIkNrgfUVkCPF0YI/s4w== 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= 1701010726; x=1701097126; bh=e2xAuD7gOAUM8OfGtdae+BtjLwHNiZQBir5 buE9N3tI=; b=PiFz7EYjcJMZ/sR7ee/r7xvNru6rSRn52bKCk9UgCoLQqJp5KQA L4hYS2rl88hdMvPVirOXOVFHxK3MuJdPvR6Wj0Y7/8g2f1iRLJx3R6OepZRf4h8s 4vZhFYJJqITgExqlOMnzKRe6w3ImT2uM/hxVqHEZmC9Xyha+nh+FlJWITBh6odKt dRSruzrRi6V9xHZM5e6+um2aVlmhv2rYjV18TF1s/de+o7o3Q1DUgnLf3r0Y/mMh oIL4f/MzKRkGb/PaK4GbRTRSXHZ7cpdeS8l2SG+90a6h/av6kpJVV7+x1+TmUwCu ENHt+BZXIt1dVMAImXp4kXTXwh5g8eU5fgQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudehledgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffhvfevfhgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepjeegiedvfefghfduteeuveejgfefleeltedvtdefveekheevffeuuefhheej fffhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 26 Nov 2023 09:58:44 -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:275061 Archived-At: On 26/11/2023 04:04, Dmitry Gutov wrote: > As for what to do about this one -- probably something involving > syntax-propertize-extend-region-functions, adding an entry which would > initialize the parser, but not call syntax-ppss-flush-cache directly (or > at least not just that). It would signal the earlier position to extend > to through some dynamic variable. This is getting tricky enough to move > from the individual major modes into treesit.el proper, I think. Alternatively, we'd trigger updates eagerly from within treesit_record_change -- that would make it slower, invalidating the comment above it. Not sure by how much, though.