From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67262: python-ts-mode cannot identify triple-quoted-strings Date: Sat, 25 Nov 2023 12:01:56 +0200 Message-ID: <83v89qcfsb.fsf@gnu.org> References: <66A741A1-38B8-40C9-BE84-AF99F74A079F@gmail.com> <838r6vm3dj.fsf@gnu.org> <9bfc5e6f-3612-115f-a59d-35ad629bdf9e@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33639"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67262@debbugs.gnu.org, jdtsmith@gmail.com To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 25 11:03:16 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 1r6pVM-0008Y4-SE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Nov 2023 11:03:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6pV5-0004ku-Qx; Sat, 25 Nov 2023 05:02:59 -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 1r6pV3-0004k9-Ro for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 05:02:57 -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 1r6pV3-0005SN-Jc for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 05:02:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r6pV8-0004kV-6Q for bug-gnu-emacs@gnu.org; Sat, 25 Nov 2023 05:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Nov 2023 10:03: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.170090653118182 (code B ref 67262); Sat, 25 Nov 2023 10:03:02 +0000 Original-Received: (at 67262) by debbugs.gnu.org; 25 Nov 2023 10:02:11 +0000 Original-Received: from localhost ([127.0.0.1]:37878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6pUI-0004jC-UE for submit@debbugs.gnu.org; Sat, 25 Nov 2023 05:02:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r6pUG-0004iz-Ql for 67262@debbugs.gnu.org; Sat, 25 Nov 2023 05:02:09 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r6pU6-0005Oh-4Y; Sat, 25 Nov 2023 05:01:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=QoKCSirePNGI/IVJC9I637IlbxEq6G8hl9Y5TeG6Mco=; b=VeH3+wVnlFVSYelJQiFd 1BTyd24a67JM2L3tmQFdl1/OHwUrvlTAu3EdYNfq6elMeGEex605p2sZYKCvj1fg3lvMl937XevRj gjKblYAgrqCDbU671pPvJlO8ke03ueWKux6yCNqj8okhLd3ZoM+o0L+RrHZYcSv2uqBdnz72d28eE 8Pi50e6DrcXn2ndbjg91N7jvlMu9V+BqTAA8Dwm0eKC7l/E1pesKedYZLIrw/w9c8VrVX1GqjhkHG zhkN/i1/l21dwY5BstA2G18w8ElJE1DCTAmu4hy+8x55R6kp0oFVO3ph8j3xR7gLohohR8kCwUpJZ +2qNch+3k6QJrg==; In-Reply-To: <9bfc5e6f-3612-115f-a59d-35ad629bdf9e@gutov.dev> (message from Dmitry Gutov on Sun, 19 Nov 2023 00:52:06 +0200) 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:274943 Archived-At: > Date: Sun, 19 Nov 2023 00:52:06 +0200 > Cc: 67262@debbugs.gnu.org > From: Dmitry Gutov > > 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. JD, would you like to try writing such a syntax-propertize-function?