1
0
mirror of https://github.com/helix-editor/helix synced 2026-01-26 05:38:09 +01:00
helix/runtime/queries/v/textobjects.scm
Sean Russell 51d3b15557
Update tree-sitter-v (#13469)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-05-07 17:38:07 -05:00

28 lines
695 B
Scheme

(function_declaration
body: (block)? @function.inside) @function.around
((function_declaration
name: (identifier) @_name
body: (block)? @test.inside) @test.around
(#match? @_name "^test"))
(function_literal
body: (block)? @function.inside) @function.around
(parameter_list
((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(call_expression
(argument_list
((_) @parameter.inside) @parameter.around))
(struct_declaration
(struct_field_declaration) @class.inside) @class.around
(struct_field_declaration
((_) @parameter.inside) @parameter.around)
[(line_comment) (block_comment)] @comment.inside
[(line_comment)+ (block_comment)+] @comment.around