aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/go
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/go')
-rw-r--r--runtime/queries/go/textobjects.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/queries/go/textobjects.scm b/runtime/queries/go/textobjects.scm
index 3cdf6203..a48ccce1 100644
--- a/runtime/queries/go/textobjects.scm
+++ b/runtime/queries/go/textobjects.scm
@@ -14,11 +14,14 @@
(type_declaration
(type_spec (type_identifier) (interface_type (method_spec)+ @class.inside))) @class.around
+(type_parameter_list
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
+
(parameter_list
- (_) @parameter.inside)
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(argument_list
- (_) @parameter.inside)
+ ((_) @parameter.inside . ","? @parameter.around) @parameter.around)
(comment) @comment.inside