Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/wgsl/textobjects.scm')
-rw-r--r--runtime/queries/wgsl/textobjects.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/queries/wgsl/textobjects.scm b/runtime/queries/wgsl/textobjects.scm
new file mode 100644
index 00000000..4dade474
--- /dev/null
+++ b/runtime/queries/wgsl/textobjects.scm
@@ -0,0 +1,14 @@
+(function_declaration
+ body: (_) @function.inside) @function.around
+
+(struct_declaration) @class.around
+
+[
+ (struct_member)
+ (parameter)
+ (variable_declaration)
+] @parameter.around
+
+(comment) @comment.inside
+
+(comment)+ @comment.around