From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59691: Html-like constructs fail in typescript Date: Wed, 30 Nov 2022 15:47:56 +0100 Message-ID: <87a648lcrn.fsf@thornhill.no> References: <87pmd58ohe.fsf@thornhill.no> <83iliwlivu.fsf@gnu.org> <8D2C4666-BB58-4C85-A080-B31B48AF947F@thornhill.no> <83wn7cjz9a.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36838"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59691@debbugs.gnu.org, casouri@gmail.com, jostein@kjonigsen.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 30 15:49:41 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 1p0OP6-0009LE-Qz for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Nov 2022 15:49:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0OOa-0007yH-Fp; Wed, 30 Nov 2022 09:49:09 -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 1p0OOW-0007xY-Cq for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 09:49:05 -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 1p0OOU-0005ll-GY for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 09:49:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0OOT-00061g-ST for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 09:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2022 14:49: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.166981968323038 (code B ref 59691); Wed, 30 Nov 2022 14:49:01 +0000 Original-Received: (at 59691) by debbugs.gnu.org; 30 Nov 2022 14:48:03 +0000 Original-Received: from localhost ([127.0.0.1]:33207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0ONW-0005zU-CY for submit@debbugs.gnu.org; Wed, 30 Nov 2022 09:48:02 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]:60685) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0ONT-0005yt-JW for 59691@debbugs.gnu.org; Wed, 30 Nov 2022 09:48:01 -0500 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1669819677; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=faRpmcn2l4UuWYY3+kGdCWVegCRbm5Kg4mNGtQPRA0k=; b=gOC5McIE0mvHyvGWANFrl6L15ME7THi3dn4doUED+K19c5fuE83/hPVuTgfeZfiLOhl+Gv oMcL1ECigR1lyIagfmG2S9myZIGoBkcHrfwQrDBFCk+ZeOljqxS8FpImDgViH9D2yWFopq sqwJMu2hChc4RrQDQQCajYZ9XbjDbCM4hwfjDfiGqO7ukYt6DgPoEDkU9DDh26nndv4mmV /evtvCpU8gfrQ1XlBbF4nQJ9p500X4Kzft6aE8BcHrGeFHJNbQqmWdhmivl2z/DBlTbOlp H0/sRGNjy0UI1vScV5LX2jWDg/0vZWELHlnCAylw2YGVHa2SvZrVkeeljkb08A== In-Reply-To: <83wn7cjz9a.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT 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:249512 Archived-At: Eli Zaretskii writes: >> 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? I don't think I agree with him. There are other constructs such as generics that also can cause these ambiguities, IIRC Theo