Unnamed repository; edit this file 'description' to name the repository.
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
30
31
32
33
34
35
36
; Scopes
;-------

[
 (function_body)
 (function_expression_body)
 (block)
 (for_statement)
 (try_statement)
 (catch_clause)
 (finally_clause)
] @local.scope

; Definitions
;------------

(formal_parameter
 name: (identifier) @local.definition.variable.parameter)

; for-in / C-style loop variable.
(for_loop_parts
 name: (identifier) @local.definition.variable)

(initialized_variable_definition
 name: (identifier) @local.definition.variable)

; References
;------------

(identifier) @local.reference

; Member access selectors carry plain identifiers that are not local references.
(unconditional_assignable_selector
 (identifier) @_)
(conditional_assignable_selector
 (identifier) @_)