Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/hare/locals.scm')
| -rw-r--r-- | runtime/queries/hare/locals.scm | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/runtime/queries/hare/locals.scm b/runtime/queries/hare/locals.scm index 1cf066f4..b8b9b9f7 100644 --- a/runtime/queries/hare/locals.scm +++ b/runtime/queries/hare/locals.scm @@ -1,12 +1,20 @@ -(sub_unit) @local.scope +(unit) @local.scope (function_declaration) @local.scope -(compound_expression) @local.scope + +(global_binding + (identifier) @local.definition) +(constant_binding + (identifier) @local.definition) +(type_bindings + (identifier) @local.definition) (function_declaration - (identifier) @local.definition.function) -(function_declaration - (parameter (name) @local.definition.variable.parameter)) + (prototype + (parameter_list + (parameters + (parameter + (name) @local.definition))))) (identifier) @local.reference |