2022-02-06 10:56:43 -08:00
|
|
|
; Let Binding Definition
|
2024-01-06 15:05:50 +09:00
|
|
|
(let
|
|
|
|
|
pattern: (identifier) @local.definition)
|
2022-02-06 10:56:43 -08:00
|
|
|
|
|
|
|
|
; List Pattern Definitions
|
2024-01-06 15:05:50 +09:00
|
|
|
(list_pattern
|
|
|
|
|
(identifier) @local.definition)
|
|
|
|
|
|
|
|
|
|
(list_pattern
|
|
|
|
|
assign: (identifier) @local.definition)
|
2022-02-06 10:56:43 -08:00
|
|
|
|
|
|
|
|
; Tuple Pattern Definition
|
2024-01-06 15:05:50 +09:00
|
|
|
(tuple_pattern
|
|
|
|
|
(identifier) @local.definition)
|
2022-02-06 10:56:43 -08:00
|
|
|
|
|
|
|
|
; Record Pattern Definition
|
2024-01-06 15:05:50 +09:00
|
|
|
(record_pattern_argument
|
|
|
|
|
pattern: (identifier) @local.definition)
|
2022-02-06 10:56:43 -08:00
|
|
|
|
|
|
|
|
; Function Parameter Definition
|
2024-01-06 15:05:50 +09:00
|
|
|
(function_parameter
|
|
|
|
|
name: (identifier) @local.definition)
|
2022-02-06 10:56:43 -08:00
|
|
|
|
|
|
|
|
; References
|
2023-07-22 15:29:32 +02:00
|
|
|
(identifier) @local.reference
|
2022-02-06 10:56:43 -08:00
|
|
|
|
2024-09-11 18:01:11 +06:00
|
|
|
; Block Scope
|
|
|
|
|
(block) @local.scope
|
|
|
|
|
|
2022-02-06 10:56:43 -08:00
|
|
|
; Case Scope
|
2023-07-22 15:29:32 +02:00
|
|
|
(case_clause) @local.scope
|