1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

Fix treesit-forward-sexp/list navigation in the middle of a node.

* lisp/treesit.el (treesit--forward-list-with-default):
Check the thing 'sexp-default' (bug#76791).

* lisp/progmodes/elixir-ts-mode.el (elixir-ts-mode):
* lisp/progmodes/go-ts-mode.el (go-ts-mode):
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
* lisp/progmodes/sh-script.el (bash-ts-mode):
Add the thing 'sexp-default' to 'treesit-thing-settings'.
This commit is contained in:
Juri Linkov 2025-04-10 19:20:35 +03:00
parent addcab6891
commit ec62674cb9
5 changed files with 32 additions and 13 deletions

View file

@ -720,6 +720,11 @@ Return nil if NODE is not a defun node or doesn't have a name."
"do_block"
"anonymous_function")
eos)))
(sexp-default
;; For `C-M-f' in "&|(a)"
("(" . ,(lambda (node)
(equal (treesit-node-type (treesit-node-parent node))
"unary_operator"))))
(sentence
,(rx bos (or "call") eos))
(text