aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/c/textobjects.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/c/textobjects.scm')
-rw-r--r--runtime/queries/c/textobjects.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/queries/c/textobjects.scm b/runtime/queries/c/textobjects.scm
new file mode 100644
index 00000000..b0f03668
--- /dev/null
+++ b/runtime/queries/c/textobjects.scm
@@ -0,0 +1,13 @@
+(function_definition
+ body: (_) @function.inside) @function.around
+
+(struct_specifier
+ body: (_) @class.inside) @class.around
+
+(enum_specifier
+ body: (_) @class.inside) @class.around
+
+(union_specifier
+ body: (_) @class.inside) @class.around
+
+(parameter_declaration) @parameter.inside