Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/go/textobjects.scm')
| -rw-r--r-- | runtime/queries/go/textobjects.scm | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/runtime/queries/go/textobjects.scm b/runtime/queries/go/textobjects.scm index 06c412ee..9bcfc690 100644 --- a/runtime/queries/go/textobjects.scm +++ b/runtime/queries/go/textobjects.scm @@ -12,22 +12,10 @@ (type_spec (type_identifier) (struct_type (field_declaration_list (_)?) @class.inside))) @class.around (type_declaration - (type_spec (type_identifier) (interface_type (method_elem)+ @class.inside))) @class.around - -(type_parameter_list - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) + (type_spec (type_identifier) (interface_type (method_spec_list (_)?) @class.inside))) @class.around (parameter_list - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) + (_) @parameter.inside) (argument_list - ((_) @parameter.inside . ","? @parameter.around) @parameter.around) - -(comment) @comment.inside - -(comment)+ @comment.around - -((function_declaration - name: (identifier) @_name - body: (block)? @test.inside) @test.around - (#match? @_name "^Test")) + (_) @parameter.inside) |