Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/wesl/locals.scm')
-rw-r--r--runtime/queries/wesl/locals.scm18
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/queries/wesl/locals.scm b/runtime/queries/wesl/locals.scm
new file mode 100644
index 00000000..9aade0e3
--- /dev/null
+++ b/runtime/queries/wesl/locals.scm
@@ -0,0 +1,18 @@
+; Scopes
+
+[
+ (global_decl)
+ (switch_body)
+ (compound_statement)
+] @local.scope
+
+; Definitions
+
+(param
+ (identifier) @local.definition)
+
+; References
+
+(identifier) @local.reference
+; (type_specifier) @local.reference
+