From 92380540b858b66f247789e5270d61c9d1305033 Mon Sep 17 00:00:00 2001 From: zetashift Date: Tue, 30 May 2023 13:29:43 +0200 Subject: chore: update scala tree-sitter grammar (#7147) * chore: update scala tree-sitter grammar * Add locals.scm for Scala--- runtime/queries/scala/locals.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 runtime/queries/scala/locals.scm (limited to 'runtime/queries/scala') 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 -- cgit v1.2.3-70-g09d2