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#65470: 29.1.50; js-ts-mode: regex pattern can cause incorrect parenthesis matching Date: Fri, 25 Aug 2023 08:30:32 +0300 Message-ID: <834jknpu2v.fsf@gnu.org> References: <59d884e2-4190-7111-8a37-548eb5a2c732@gutov.dev> <83fs49q8ui.fsf@gnu.org> <87bkew6x4y.fsf@thornhill.no> <3f955b21-1394-a7bd-ed35-064d8731e751@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="23792"; mail-complaints-to="usenet@ciao.gmane.io" Cc: btuin@mailo.com, jostein@kjonigsen.net, casouri@gmail.com, 65470@debbugs.gnu.org, theo@thornhill.no To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 25 07:31:25 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 1qZPPo-000627-8q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 25 Aug 2023 07:31:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZPPV-0000CL-GV; Fri, 25 Aug 2023 01:31:05 -0400 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 1qZPPP-0008Cz-DH for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 01:31:01 -0400 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 1qZPPN-0000Ow-IV for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 01:30:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZPPR-0001rS-UN for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2023 01:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Aug 2023 05:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65470 X-GNU-PR-Package: emacs Original-Received: via spool by 65470-submit@debbugs.gnu.org id=B65470.16929414246801 (code B ref 65470); Fri, 25 Aug 2023 05:31:01 +0000 Original-Received: (at 65470) by debbugs.gnu.org; 25 Aug 2023 05:30:24 +0000 Original-Received: from localhost ([127.0.0.1]:38978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZPOp-0001lc-KO for submit@debbugs.gnu.org; Fri, 25 Aug 2023 01:30:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZPOm-0001lM-Dc for 65470@debbugs.gnu.org; Fri, 25 Aug 2023 01:30:21 -0400 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 1qZPOY-0008I8-NT; Fri, 25 Aug 2023 01:30:07 -0400 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=nDhAIrMpIY33u2A2RAM5YtHBoal1Jwgac/ae4GWuPvI=; b=PnzFiwSzTW8dy+9Xm0t4 /7bR7A9DrGtkidOcN3kt/IMWArQn3EEC8ECHN0/pNvohG5EfosLoY2f0EU/FTIwA4c911WvFbINUa mT+AHVMM4Ld9+CDavGngn+Ojyx5cmKPsu26JD/a7CrCtzxIc49R4cazC80dNFHj3snoqn8CCfJkX3 2Yfbq2q2Fc118jw/r3RwxYFUX6/eky4KGSf5pJ88o5lhnsn8COr+JkCzGryh9zmdRv6qlqPqF5rvq QN57ovZcP36qRPm1pC5ASXEBplYwDIxr/IY0D+yQGhDstEFqEf8z99t4w9vDkz/Tnmr4d+obxlTs0 bdjpn7uG2XrSWA==; In-Reply-To: <3f955b21-1394-a7bd-ed35-064d8731e751@gutov.dev> (message from Dmitry Gutov on Fri, 25 Aug 2023 03:18:54 +0300) 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:268386 Archived-At: > Date: Fri, 25 Aug 2023 03:18:54 +0300 > Cc: btuin@mailo.com, 65470@debbugs.gnu.org > From: Dmitry Gutov > > >>> Others (typescript-ts-mode?) probably need it as well, at least modes > >>> for those languages that have dedicated regexp or heredoc syntax. > >> Would someone please add syntax-propertize-function in modes that need > >> it? I think this should be done on the emacs-29 branch. > >> > >> TIA > > I'll add it to my list, but if someone will grab it that's fine, as I'm > > a little short on time the next couple of weeks 🙁 > > This one seems to work for js-ts-mode. > > typescript is a bit more fiddly (two separate modes, one with jsx and > one without), but should be able to follow the similar pattern. Thanks. If no issues are found with this within the next couple of days, please install on the emacs-29 branch.