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 14:00:49 +0100 Message-ID: <8D2C4666-BB58-4C85-A080-B31B48AF947F@thornhill.no> References: <87pmd58ohe.fsf@thornhill.no> <83iliwlivu.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 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="38441"; 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 14:03:18 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 1p0Mk9-0009nS-QW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 30 Nov 2022 14:03:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0Mjy-0004TV-O8; Wed, 30 Nov 2022 08:03:06 -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 1p0Mju-0004R9-BU for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 08:03: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 1p0Mju-0001SG-2b for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 08:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p0Mjt-0004wW-UX for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2022 08:03: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 13:03: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.166981337418994 (code B ref 59691); Wed, 30 Nov 2022 13:03:01 +0000 Original-Received: (at 59691) by debbugs.gnu.org; 30 Nov 2022 13:02:54 +0000 Original-Received: from localhost ([127.0.0.1]:60856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0Mjm-0004wI-2t for submit@debbugs.gnu.org; Wed, 30 Nov 2022 08:02:54 -0500 Original-Received: from out2.migadu.com ([188.165.223.204]:61901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p0Mjg-0004wB-Vv for 59691@debbugs.gnu.org; Wed, 30 Nov 2022 08:02:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1669813367; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tP7FOW0JxgAa0K8qxMveynpvFkLozXr6DQfzx7R1rmE=; b=SVa+jaLXCGDS2XWdVur5MvzTxRbrI9mGknuYgSfQA3YCnLoaU4XXIGJySQRbDnpQWXrBX5 AMgdY6ySScfIq1I8GC/1NbldrBFKC6Cs8KvuqdndsRlKINUg015+v+YC4gkMZYTCF9p3Jc ZCjAGhvyJxhblbq571HmrJtHOnP+IHGk5itcxcYxdFzSTRfAEOLiIIprUdiSG+xLV4/0S5 46vIjLfOGc/PU7Dk5icCGgP9qgFlq52XHT/0ixew8Ie62IgWZofoDwDkNobKbSgx6sKUM/ s527TB+c8CmPOh7Qn5nMpJ7nPyUGkqYfGOTJGbxGlWRBg5Ul2wAGDDycMcfNUQ== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: <83iliwlivu.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:249489 Archived-At: On 30 November 2022 13:35:49 CET, Eli Zaretskii wrote: >> From: Theodor Thornhill >> Cc: jostein@kjonigsen=2Enet, casouri@gmail=2Ecom, eliz@gnu=2Eorg >> Date: Tue, 29 Nov 2022 22:01:01 +0100 >>=20 >> The solution is to create two modes: typescript-ts-mode and >> tsx-ts-mode=2E They have separate parsers, and should be treated as >> separate languages=2E That means that in a =2Ets file we enable the >> 'typescript' language, and in =2Etsx we enable the 'tsx' language=2E T= his >> exact issue is why they have two languages=2E > >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 :)