GNU bug report logs -
#66988
30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode
Previous Next
Reported by: Loïc Lemaître <loic.lemaitre <at> gmail.com>
Date: Tue, 7 Nov 2023 16:20:01 UTC
Severity: normal
Found in version 30.0.50
Fixed in version 30.1
Done: Yuan Fu <casouri <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> On Nov 11, 2023, at 2:49 AM, Dmitry Gutov <dmitry <at> gutov.dev> wrote:
>
> On 11/11/2023 04:41, Yuan Fu wrote:
>> I regret not doing this by default for treesit-indent-rules and traverse functions. Now it’s hard to change without creating confusion and breaking backward compatibility. I wonder if there are good way to smoothly transition to match full names by default…
>> Treesit-thing-settings can be changed to match full names, but only if we can change treesit-indent-rules and friends too. Otherwise it would be too confusing.
>
> It's my understanding that the current implementation, when it doesn't use a full match, is a potential bug in every single instance.
That’s a good point.
> Perhaps you have an example of when partial match is intended and beneficial? If so, we can just go through all other regexps and wrap them in \` and \'. And should.
I don’t, except for a very few cases where I saved typing a few characters.
You have a good point. I think most people instinctively write the full match in their code anyway, so changing to the full match should be fine. We can start from master and see if the world ends or not.
Yuan
This bug report was last modified 1 year and 127 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.