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 | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/runtime/queries/go/textobjects.scm b/runtime/queries/go/textobjects.scm index 06c412ee..d77e14b7 100644 --- a/runtime/queries/go/textobjects.scm +++ b/runtime/queries/go/textobjects.scm @@ -12,22 +12,14 @@ (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) + (_) @parameter.inside) (comment) @comment.inside (comment)+ @comment.around - -((function_declaration - name: (identifier) @_name - body: (block)? @test.inside) @test.around - (#match? @_name "^Test")) |