* lisp/progmodes/js.el (js--treesit-list-nodes):
* lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--list-nodes):
Replace leaf "string" with "template_string" and "template_substitution"
that can contain more nodes.
* lisp/progmodes/ruby-ts-mode.el (ruby-ts-mode):
Add the 'sentence' thing to treesit-thing-settings.
(cherry picked from commit
63cc542b9402ad0a794f4e05790366bd580b8bd1)
"jsx_element"
"jsx_expression"
"jsx_self_closing_element"
- "string"
+ "template_string"
+ "template_substitution"
"regex"
"arguments"
"class_body"
"hash")
eos)
#'ruby-ts--list-p))
+ (sentence ,(rx bos (or "return"
+ "body_statement"
+ "call"
+ "assignment")
+ eos))
(text ,(lambda (node)
(or (member (treesit-node-type node)
'("comment" "string_content" "heredoc_content"))
"object_pattern"
"array"
"array_pattern"
- "string"
+ "template_string"
+ "template_substitution"
"regex"
"arguments"
"class_body"
"formal_parameters"
"computed_property_name"
+ ;; TypeScript
"decorator_parenthesized_expression"
"enum_body"
"parenthesized_type"