helix/runtime/queries/wesl/textobjects.scm

24 lines
496 B
Scheme

(function_decl
body: (_) @function.inside) @function.around
(struct_decl
body: (_) @class.inside) @class.around
(param_list
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(argument_list
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(template_list
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
[
(line_comment)
(block_comment)
] @comment.inside
(line_comment)+ @comment.around
(block_comment) @comment.around