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

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

; Definitions

(parameter
  (identifier) @local.definition)

(closure_parameters (identifier) @local.definition)

; References
(identifier) @local.reference