diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/scala/locals.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/runtime/queries/scala/locals.scm b/runtime/queries/scala/locals.scm new file mode 100644 index 00000000..8eaa75ec --- /dev/null +++ b/runtime/queries/scala/locals.scm @@ -0,0 +1,29 @@ +(template_body) @local.scope +(lambda_expression) @local.scope + + +(function_declaration + name: (identifier) @local.definition) @local.scope + +(function_definition + name: (identifier) @local.definition) + +(parameter + name: (identifier) @local.definition) + +(binding + name: (identifier) @local.definition) + +(val_definition + pattern: (identifier) @local.definition) + +(var_definition + pattern: (identifier) @local.definition) + +(val_declaration + name: (identifier) @local.definition) + +(var_declaration + name: (identifier) @local.definition) + +(identifier) @local.reference |