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#59691: Html-like constructs fail in typescript Date: Wed, 30 Nov 2022 16:25:05 +0200 Message-ID: <83wn7cjz9a.fsf@gnu.org> References: <87pmd58ohe.fsf@thornhill.no> <83iliwlivu.fsf@gnu.org> <8D2C4666-BB58-4C85-A080-B31B48AF947F@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35776"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59691@debbugs.gnu.org, casouri@gmail.com, jostein@kjonigsen.net To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 30 15:26:23 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 1p0O2Y-00094c-Sa for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Nov 2022 15:26:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0O2N-0001xA-La; Wed, 30 Nov 2022 09:26:15 -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 1p0O2J-0001tY-Nl for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 09:26:08 -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 1p0O2J-00028y-F1 for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 09:26:07 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0O2E-0005np-AX for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 09:26: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: Wed, 30 Nov 2022 14:26:02 +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.166981834822298 (code B ref 59691); Wed, 30 Nov 2022 14:26:02 +0000 Original-Received: (at 59691) by debbugs.gnu.org; 30 Nov 2022 14:25:48 +0000 Original-Received: from localhost ([127.0.0.1]:33101 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0O1z-0005na-Lu for submit@debbugs.gnu.org; Wed, 30 Nov 2022 09:25:47 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0O1x-0005nQ-Ml for 59691@debbugs.gnu.org; Wed, 30 Nov 2022 09:25:46 -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 1p0O1o-000217-4z; Wed, 30 Nov 2022 09:25:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4jL7LM617BTQK3pkf1vsnf6PVrQUscziflmkayWm4G4=; b=KocnxNifCw4f 4m0fr2xUj625BFE7JtChXs2P48gACjIhqztx/UGh904PWw1fpIlxjDmVtEpVanUK0o51Hi0SWU2Xw NYBNeYS1F7bR4uyxioqWYT+eKHwmCiXn4kPl+jTdC8A+7QoFMaCc1rMDEpksx1+VF6cv06n5/EEQT /Jm2ppBYGVjz1DnGirt5mdL7AmtKEGjzR2jjtEBzLCvcBvhHwPH6LcZ3cRSi9zFm1Ip2QucEx44+y pz8ZkRk5/RMqlfoFrYYf34ijLhSYRM3yYhB9EEIOP36hzD5D2Mxy6WwIJbEJVbMf8YLSI/J/CUI5X 2tFNWFOBvOlptuSSnQFCtw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0O1n-0002sN-IE; Wed, 30 Nov 2022 09:25:35 -0500 In-Reply-To: <8D2C4666-BB58-4C85-A080-B31B48AF947F@thornhill.no> (message from Theodor Thornhill on Wed, 30 Nov 2022 14:00:49 +0100) 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:249509 Archived-At: > Date: Wed, 30 Nov 2022 14:00:49 +0100 > From: Theodor Thornhill > CC: 59691@debbugs.gnu.org, jostein@kjonigsen.net, casouri@gmail.com > > > > On 30 November 2022 13:35:49 CET, Eli Zaretskii wrote: > >> From: Theodor Thornhill > >> Cc: jostein@kjonigsen.net, casouri@gmail.com, eliz@gnu.org > >> Date: Tue, 29 Nov 2022 22:01:01 +0100 > >> > >> The solution is to create two modes: typescript-ts-mode and > >> tsx-ts-mode. They have separate parsers, and should be treated as > >> separate languages. That means that in a .ts file we enable the > >> 'typescript' language, and in .tsx we enable the 'tsx' language. This > >> exact issue is why they have two languages. > > > >This means the script posted by Yuan, which only creates a single grammar > >library for Typescript (the one for tsx), should be changed to instead > >produce two libraries, right? > > Yes, I can fix that when the two modes are in :) Thanks. But now I hear that the original analysis could be incomplete, and there actually is no problem, according to Jostein's last messages?