diff options
Diffstat (limited to 'runtime/queries/hare/locals.scm')
-rw-r--r-- | runtime/queries/hare/locals.scm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/queries/hare/locals.scm b/runtime/queries/hare/locals.scm new file mode 100644 index 00000000..b8b9b9f7 --- /dev/null +++ b/runtime/queries/hare/locals.scm @@ -0,0 +1,20 @@ +(unit) @local.scope + +(function_declaration) @local.scope + +(global_binding + (identifier) @local.definition) +(constant_binding + (identifier) @local.definition) +(type_bindings + (identifier) @local.definition) + +(function_declaration + (prototype + (parameter_list + (parameters + (parameter + (name) @local.definition))))) + +(identifier) @local.reference + |