summaryrefslogtreecommitdiff
path: root/runtime/queries/scala/locals.scm
blob: 8eaa75ec3f9080a7ad7db4c553cb8e4c20fc97d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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