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#59691: 29.0.60; typescript-ts-mode: any HTML-like elements causes fontification to become invalid and remaining parse-tree to become jsx-expression Date: Thu, 1 Dec 2022 20:44:59 -0800 Message-ID: References: <831qpklejb.fsf@gnu.org> <83mt88jul4.fsf@gnu.org> <0A18F996-F3BB-4A7D-A0BE-76C8374DE517@thornhill.no> <8335a0jofb.fsf@gnu.org> <7BE15945-C463-448A-8593-E3B5D0E374FB@thornhill.no> <871qpj1x2k.fsf@thornhill.no> <83fsdzin4e.fsf@gnu.org> <87v8mvzgmt.fsf@thornhill.no> <838rjrigmq.fsf@gnu.org> <87k03bz99r.fsf@thornhill.no> <835yeviats.fsf@gnu.org> 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="32296"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jostein =?UTF-8?Q?Kj=C3=B8nigsen?= , Theodor Thornhill , jostein@kjonigsen.net, 59691@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 02 05:46:19 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 1p0xwJ-0008CB-6W for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Dec 2022 05:46:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0xw3-0005z6-PV; Thu, 01 Dec 2022 23:46:03 -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 1p0xw2-0005yd-DP for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 23:46:02 -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 1p0xw2-0005Nc-51 for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 23:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0xw2-0007Fa-0I for bug-gnu-emacs@gnu.org; Thu, 01 Dec 2022 23:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Dec 2022 04:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59691 X-GNU-PR-Package: emacs Original-Received: via spool by 59691-submit@debbugs.gnu.org id=B59691.166995631427837 (code B ref 59691); Fri, 02 Dec 2022 04:46:01 +0000 Original-Received: (at 59691) by debbugs.gnu.org; 2 Dec 2022 04:45:14 +0000 Original-Received: from localhost ([127.0.0.1]:43990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0xvG-0007Ev-9j for submit@debbugs.gnu.org; Thu, 01 Dec 2022 23:45:14 -0500 Original-Received: from mail-pj1-f47.google.com ([209.85.216.47]:38793) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0xvA-0007Eh-T2 for 59691@debbugs.gnu.org; Thu, 01 Dec 2022 23:45:11 -0500 Original-Received: by mail-pj1-f47.google.com with SMTP id l22-20020a17090a3f1600b00212fbbcfb78so7224697pjc.3 for <59691@debbugs.gnu.org>; Thu, 01 Dec 2022 20:45:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=uCMv1YNjGgyXGXAV5leILfMD9/i1rf+8aUhxKILeXls=; b=XGkLecPWficCE4+wTPeZfll2UIvYmaGtKwfSqzxs9TeUM3jYyOgYUv0i3iy+0weLjk hUrvpBoFguZsr3YDWXP4zIcjPiLNxg4o40G3W0M4ExKKUSGBC44/p8JKEvn77csVl59D F72AbJytRPlUXlU8cP5Ko2pi4D3UTxU4f1Nhx7SSomVWqzqI6TGQ1ObwIsJ0MkUtjGg5 Rhlrhmu19bFUv+jGzsfDSmnmXcif66if1ltaSAqAUeLrPhmzar4keSIERxrr+hIhUjKP ZEZ0hgjJSDR+mgyT7M+HZ/LsqR4wOrVHMv6x0mFKUYEsC+aPH8YEcfR37p83RPjOGa96 /ufw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uCMv1YNjGgyXGXAV5leILfMD9/i1rf+8aUhxKILeXls=; b=51lOdFNFFFxRNohyRWbgWW/MluQ9VG6/YoLzQhu4nZLnvv2pmn4gweVbuI7EP7SgcI i0PbUv0TMGCoNpYVkDvH7G8QVeKMzxGH3Vt006qvW0zFYGmZV5MK4Mj5ldTz0+k7TG5d 2H14IRjG953xJV0LOLhwPX8Ao+sHoQ54RBvWTIdIO2Wuux/YkCBtERssK6QylEu2Ksfp 6Qx5VyuUlzEWL0N1ftzU5aQiIebvxwL5yrlUFiBlMxZAVlm9GGanOqQEMRTh1SpFM0xH 4sIMi0/is41HUx/7uP4o4zd32mkCBPr28+kIc12kOLELjX+bK9TGfP20dki92QzqPizX Xrzw== X-Gm-Message-State: ANoB5pnEFnKHCF5sdjpxpe/Ce+XUQ5POL5zeZWMyB973idoGtA6EtqIV hB6+NUQyZjui8v+PBiDRAro= X-Google-Smtp-Source: AA0mqf41eBcP06QZ6uBT9nVlL/W3RJslQwMXOGp8BtBx4c1O7TUaG1xo4slHKMdfvh5MXJtsdDA2bw== X-Received: by 2002:a17:902:c085:b0:186:ff42:704d with SMTP id j5-20020a170902c08500b00186ff42704dmr53925381pld.153.1669956302925; Thu, 01 Dec 2022 20:45:02 -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 w10-20020a170902e88a00b00183e2a96414sm4527123plg.121.2022.12.01.20.45.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Dec 2022 20:45:01 -0800 (PST) In-Reply-To: <835yeviats.fsf@gnu.org> 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:249697 Archived-At: > On Dec 1, 2022, at 4:10 AM, Eli Zaretskii wrote: >=20 >> From: Theodor Thornhill >> Cc: casouri@gmail.com, jostein@secure.kjonigsen.net, = 59691@debbugs.gnu.org, >> jostein@kjonigsen.net >> Date: Thu, 01 Dec 2022 11:52:00 +0100 >>=20 >>> Yes, I missed that, sorry. But the NEWS entry should clearly say = that one >>> mode is the default for *.ts files, the other for *.tsx files. >>=20 >> No worries :) >>=20 >> Is this patch suitable? >=20 > LGTM, thanks. >=20 > Yuan, if you are okay with this, please install. Cool. I applied the patch, thanks Theo! I changed = typescript-ts-mode=E2=80=94base-mode to typescript-ts-base-mode, since I = don=E2=80=99t think anyone has strong opinions about its naming, and = typescript-ts-base-mode is more consistent with other tree-sitter base = modes. Yuan=