|
From: | Dmitry Gutov |
Subject: | bug#60894: 30.0.50; [PATCH] Add treesit-forward-sexp |
Date: | Thu, 19 Jan 2023 05:30:43 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
My SMIE experience with it is that we really need a specific hook for that if we want to avoid wonky behaviors in "corner" cases.A bug report with repro would probably help, I guess. Or you could start on that hook yourself.I think `C-M-u` from within a LaTeX environment was one of the cases where it misbehaved (tho that one is not using SMIE).
Any chance SMIE is doing something different, or something particularly correct?
Because in my experience as well backward-up-list seems to work fine with SMIE, but not with the tree-sitter forward-sexp implementation under discussion.
Do you mean a hook like backward-up-list-function, or something smaller?Something like that. Maybe it could also be used for `expand-region` and `thing-at-point` kind of purposes maybe and could work even for treesit nodes that aren't "matching begin..end thingies".
A treesit node doesn't need an explicit "end" token, though.
[Prev in Thread] | Current Thread | [Next in Thread] |