aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/r/locals.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/r/locals.scm')
-rw-r--r--runtime/queries/r/locals.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/queries/r/locals.scm b/runtime/queries/r/locals.scm
new file mode 100644
index 00000000..be6cc637
--- /dev/null
+++ b/runtime/queries/r/locals.scm
@@ -0,0 +1,11 @@
+; locals.scm
+
+(function_definition) @local.scope
+
+(formal_parameters (identifier) @local.definition)
+
+(left_assignment name: (identifier) @local.definition)
+(equals_assignment name: (identifier) @local.definition)
+(right_assignment name: (identifier) @local.definition)
+
+(identifier) @local.reference