bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-m


From: Dmitry Gutov
Subject: bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode
Date: Sun, 12 Nov 2023 01:40:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 11/11/2023 17:43, Loïc Lemaître wrote:
Thanks for the patch ! It fixes the bug.
But unfortunatly, there is another similar bug in /treesit-forward-sexp/, that you can reproduce with that example:
({(<A></A>)});

The problem in this case is that the code doesn't parse (one of the nodes in the parse tree is ERROR). Removing either the curlies, or the outer parens pair makes the code valid and the behavior correspondingly better.

Although for treesit-forward-sexp to jump between curlies in

  {(<A></A>)};

we'll also need to add "statement_block" to js--treesit-sexp-nodes.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]