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

(block) @local.scope
(closure_expression) @local.scope

; Definitions

(parameter
  (identifier) @local.definition)

(let_declaration
  pattern: (identifier) @local.definition)

(closure_parameters (identifier) @local.definition)

; References
(identifier) @local.reference