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

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

; Definitions

(parameter
  (identifier) @local.definition)

(closure_parameters (identifier) @local.definition)

; References
(identifier) @local.reference