aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rust/locals.scm
blob: 75e5d181c13abbfc49208151256e83c4e0d1d82c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; Scopes

[
  (function_item)
  (closure_expression)
  (block)
] @local.scope

; Definitions

(parameter
  (identifier) @local.definition)

(closure_parameters (identifier) @local.definition)

; References
(identifier) @local.reference