Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/wgsl/rainbows.scm')
-rw-r--r--runtime/queries/wgsl/rainbows.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/queries/wgsl/rainbows.scm b/runtime/queries/wgsl/rainbows.scm
new file mode 100644
index 00000000..6e644e36
--- /dev/null
+++ b/runtime/queries/wgsl/rainbows.scm
@@ -0,0 +1,14 @@
+[
+ (struct_declaration)
+ (function_declaration)
+ (attribute)
+ (type_declaration)
+ (compound_statement)
+ (argument_list_expression)
+ (postfix_expression)
+ (variable_qualifier)
+ (subscript_expression)
+ (parenthesized_expression)
+] @rainbow.scope
+
+["(" ")" "[" "]" "{" "}" "<" ">"] @rainbow.bracket