aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/wren/locals.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/wren/locals.scm')
-rw-r--r--runtime/queries/wren/locals.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/queries/wren/locals.scm b/runtime/queries/wren/locals.scm
new file mode 100644
index 00000000..38f39d91
--- /dev/null
+++ b/runtime/queries/wren/locals.scm
@@ -0,0 +1,21 @@
+[
+ (method_definition)
+] @local.scope
+
+(name) @local.reference
+(field) @local.reference
+(static_field) @local.reference
+
+(for_statement
+ loop_variable: (name) @local.definition)
+
+(variable_definition
+ name: (name) @local.definition)
+
+(assignment
+ left: (field) @local.definition)
+
+(assignment
+ left: (static_field) @local.definition)
+
+(parameter) @local.definition