mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
* 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:
parent
73d959233e
commit
27ea7e6c1e
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue