[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: |
Eli Zaretskii |
Subject: |
bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode |
Date: |
Sat, 11 Nov 2023 09:35:56 +0200 |
> Cc: Theodor Thornhill <theo@thornhill.no>, 66988@debbugs.gnu.org,
> Loïc Lemaître <loic.lemaitre@gmail.com>
> From: Yuan Fu <casouri@gmail.com>
> Date: Fri, 10 Nov 2023 18:41:20 -0800
>
> > Alternatively, treesit-thing-settings could be interpreted to imply full
> > matches, then the code using it should not only match against the regexps
> > but also check that the entire string (type name) is matched.
>
> 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.
Is it feasible to have a variable that controls whether the full
matches are implied in these APIs? Then we could start by making it
optional, and at some later time make it the default.
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Loïc Lemaître, 2023/11/07
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Dmitry Gutov, 2023/11/09
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Juri Linkov, 2023/11/10
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Yuan Fu, 2023/11/10
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode,
Eli Zaretskii <=
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Yuan Fu, 2023/11/15
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Eli Zaretskii, 2023/11/15
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Yuan Fu, 2023/11/18
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Eli Zaretskii, 2023/11/19
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Yuan Fu, 2023/11/19
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Dmitry Gutov, 2023/11/11
- bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Yuan Fu, 2023/11/15
bug#66988: 30.0.50; treesit-forward-sexp not working properly in js-ts-mode and tsx-ts-mode, Loïc Lemaître, 2023/11/11