summaryrefslogtreecommitdiff
path: root/runtime/queries/gleam/locals.scm
blob: 4930057390b56a7b7747f4810276bdcd388fd13a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; Scopes
(function) @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