summaryrefslogtreecommitdiff
path: root/runtime/queries/gleam/locals.scm
blob: bd5903e5679ad2a2a9ed9ec24a799734205401e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; Scopes
(function_body) @local.scope

(case_clause) @local.scope

; Definitions
(let pattern: (identifier) @local.definition)
(function_parameter name: (identifier) @local.definition)
(list_pattern (identifier) @local.definition)
(list_pattern assign: (identifier) @local.definition)
(tuple_pattern (identifier) @local.definition)
(record_pattern_argument pattern: (identifier) @local.definition)

; References
(identifier) @local.reference