2022-03-30 04:13:58 +02:00
|
|
|
; Scopes
|
2022-05-17 21:31:39 +02:00
|
|
|
(function) @local.scope
|
2022-03-30 04:13:58 +02:00
|
|
|
|
|
|
|
(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
|