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: Sun, 05 Jan 2025 09:57:59 +0200 Organization: LINKOV.NET Message-ID: <874j2dy97k.fsf@mail.linkov.net> References: <1A3DAA8F-F00A-4984-AC0F-E62F021A690B@gmail.com> <87r05xmr24.fsf@mail.linkov.net> <87jzbpmqhm.fsf@mail.linkov.net> <9C416A93-5E86-4FE5-ADFB-092365169F09@gmail.com> <87ed1xkn7h.fsf@mail.linkov.net> <5626DFE7-CA89-4A39-A896-99D8814FD6CD@gmail.com> <87msgk43cv.fsf@mail.linkov.net> <28f6a7a3-8b09-41f9-8908-10a82be17aaa@gutov.dev> <077C5CF3-F487-4A88-9CC9-E7B329CB7C5B@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22237"; 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 , Theodor Thornhill , 73978@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 09:10:19 2025 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 1tULiF-0005do-Jc for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 09:10:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tULi4-0002do-4x; Sun, 05 Jan 2025 03:10: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 1tULhz-0002az-FB for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 03:10:03 -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 1tULhy-0006Zp-Pr for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 03:10:03 -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=P6JHVNWHj1fU4aVxbzqJQnwrNprzk4Nfy95xWVCEe/A=; b=Yn8o81JAEIkPruFDlrnllCW7O+j0JTOiTOzkNNlinBy6MoxvuzHgKwcbMuMYG1j00cYs48iZpFF9vsJN0CqVOOu5a3BX1TYGJqAu9csuBCnW8oudq/5V5LDOoJyJKvxzBpp7V1lskj56XnxnhQO6Y6K4HFfghh9B3KaX2rUf/0ZF+fKnB5t3sQGE7Eevz0A7/k1uv6DhTGyQ7faH/5IAWOnh1JT98wOzz86NLWj0oTRV6GHJ+1fNwCepXYVUp3OrAggWu5JkMdIdJKwAy489kHn+J95Ykof2vxQ5cVq6lanikO8j+fYdhPPSuhQwQFziLV2Gi5u1steJbtI7XkAcBA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tULhx-00038K-LL for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 03:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 08:10:01 +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.173606458112009 (code B ref 73978); Sun, 05 Jan 2025 08:10:01 +0000 Original-Received: (at 73978) by debbugs.gnu.org; 5 Jan 2025 08:09:41 +0000 Original-Received: from localhost ([127.0.0.1]:59684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tULhc-00037c-RK for submit@debbugs.gnu.org; Sun, 05 Jan 2025 03:09:41 -0500 Original-Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]:57255) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tULha-00037M-Tg for 73978@debbugs.gnu.org; Sun, 05 Jan 2025 03:09:39 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 41580C0003; Sun, 5 Jan 2025 08:09:29 +0000 (UTC) In-Reply-To: <077C5CF3-F487-4A88-9CC9-E7B329CB7C5B@gmail.com> (Yuan Fu's message of "Sat, 4 Jan 2025 11:58:02 -0800") 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:298511 Archived-At: >> But I guess tsx-ts--syntax-propertize-captures could only apply syntax to >> specific characters inside the text - it would search for parens, >> brackets, (something else?), and put the "punctuation" syntax on them - >> that should play nicer with sexp/word/symbol navigation. >> >> A bit more code, but OTOH we would drop the (eq ne (1+ ns)) distinction. > > That’s a good idea! I implemented this. Now forward-sexp should work as normal. Thanks, this is better. Now forward-sexp correctly moves to the end of the string. However, it still moves inside the tag, e.g. with point in ReactDOM.render(

Hello, Welcome to React and TypeScript-!-

, document.getElementById("root") ); C-M-f moves point to ReactDOM.render(

Hello, Welcome to React and TypeScript

, document.getElementById("root") ); But maybe this is a different problem.