* lisp/progmodes/sh-script.el (bash-ts-mode): Fix 'sexp-default' thing.

Handle 'sexp-default' thing in 'treesit-thing-settings'
for "${a}" in addition to "$(a)".
This commit is contained in:
Juri Linkov 2026-08-09 20:54:16 +03:00
parent 73d959233e
commit 27ea7e6c1e

View file

@ -1618,11 +1618,11 @@ not written in Bash or sh."
"process_substitution")
eos))
(sexp-default
;; For `C-M-f' in "$|(a)"
("$(" .
;; For `C-M-f' in "$|{a}" or "$|(a)"
("$[{(]" .
,(lambda (node)
(equal (treesit-node-type (treesit-node-parent node))
"command_substitution"))))
(member (treesit-node-type (treesit-node-parent node))
'("expansion" "command_substitution")))))
(sentence
,(rx bos (or "redirected_statement"
"declaration_command"