summaryrefslogtreecommitdiff
path: root/runtime/queries/llvm/textobjects.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/llvm/textobjects.scm')
-rw-r--r--runtime/queries/llvm/textobjects.scm16
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/queries/llvm/textobjects.scm b/runtime/queries/llvm/textobjects.scm
new file mode 100644
index 00000000..3738a3bb
--- /dev/null
+++ b/runtime/queries/llvm/textobjects.scm
@@ -0,0 +1,16 @@
+(define
+ body: (_) @function.inside) @function.around
+
+(struct_type
+ (struct_body) @class.inside) @class.around
+
+(packed_struct_type
+ (struct_body) @class.inside) @class.around
+
+(array_type
+ (array_vector_body) @class.inside) @class.around
+
+(vector_type
+ (array_vector_body) @class.inside) @class.around
+
+(argument) @parameter.inside