aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/go
diff options
context:
space:
mode:
authorAndrey Tkachenko2022-05-23 12:24:30 +0000
committerBlaž Hrastnik2022-05-25 12:26:06 +0000
commit10463fe32c789f49c65d53c9d22621e415a854ea (patch)
tree610d40f68cc6d314c2a3dba658faf440389728ef /runtime/queries/go
parentda2952725880d132fdfc2117dedebfe56ffdb646 (diff)
Add `parameter.around` text object query
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