From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#73978: 31.0.50; Text syntax applied on too many things in tsx-ts-mode Date: Tue, 24 Dec 2024 09:59:10 +0200 Organization: LINKOV.NET Message-ID: <87r05xmr24.fsf@mail.linkov.net> References: <1A3DAA8F-F00A-4984-AC0F-E62F021A690B@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8813"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: dmitry@gutov.dev, theo@thornhill.no, 73978@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 24 09:23:24 2024 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 1tQ0CJ-0002AD-3T for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Dec 2024 09:23:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQ0C4-0005Oc-4Z; Tue, 24 Dec 2024 03:23:08 -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 1tQ0By-0005O8-MF for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2024 03:23:02 -0500 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 1tQ0By-0007y4-Dg for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2024 03:23:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=HOPQFwAlLTuLoJVuDSRrMmOtJj1jnNdKlCu5/rhgdHA=; b=nEeHHl1j9B7wv/w+KJNUG+If8SLwtBITLhQGtTlBVdXXYj28b4biPnZO4J07m/KeHmEypq2aCbK0VVOaXY06KVqpGjVvpyoCqTKsbZVF4rGPfUugB79ixtIovWVkgEm75fD54zRk2e7qXShqRLgI1SwmYg2B0E5q6RNONCPiI4F231FJ7jJECq1972S+HUwKRkMRCMPr2Q+AqTohPejqiLFbe/DOrKOlE3LMS6mQsNkUrLU/tLJ0BDjjXwhtzNPpH6axIizvAsY+/Wxkl56VFRxl4ETeJQZ9aABB8zo1QAihtMCvc6pxwibpKNgKNZu+Ti7bKIqVni9xG9YPPDcEVA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tQ0By-0001ea-7p for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2024 03:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Dec 2024 08:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73978 X-GNU-PR-Package: emacs Original-Received: via spool by 73978-submit@debbugs.gnu.org id=B73978.17350285316252 (code B ref 73978); Tue, 24 Dec 2024 08:23:02 +0000 Original-Received: (at 73978) by debbugs.gnu.org; 24 Dec 2024 08:22:11 +0000 Original-Received: from localhost ([127.0.0.1]:59242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQ0B9-0001cl-ER for submit@debbugs.gnu.org; Tue, 24 Dec 2024 03:22:11 -0500 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:40885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tQ0B6-0001cV-Rv for 73978@debbugs.gnu.org; Tue, 24 Dec 2024 03:22:09 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id B214120003; Tue, 24 Dec 2024 08:21:38 +0000 (UTC) In-Reply-To: <1A3DAA8F-F00A-4984-AC0F-E62F021A690B@gmail.com> (Yuan Fu's message of "Wed, 23 Oct 2024 21:06:40 -0700") X-GND-Sasl: juri@linkov.net 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:297688 Archived-At: > I went with the whitespace trick and pushed my patch to master. While testing forward-sexp in tsx-ts-mode I noticed that this line in 'tsx-ts--s-p-query': ((jsx_text) @jsx) disrupts syntax-based navigation for forward-sentence-default-function. In such example: import * as React from "react"; import * as ReactDOM from "react-dom"; ReactDOM.render(

Hello, Welcome to React and TypeScript

, document.getElementById("root") ); 'C-M-b' on text inside

stops after the first "H" in "Hello", and 'C-M-f' before the last "t" in "TypeScript". It seems the first and the last characters are interpreted as the opening/closing fence?