2024-03-31 19:43:49 +02:00
|
|
|
(expr_body) @local.scope
|
|
|
|
|
|
|
|
|
|
(argument_patterns
|
|
|
|
|
(identifier_pattern
|
|
|
|
|
(identifier) @local.definition))
|
|
|
|
|
|
|
|
|
|
; (argument_patterns(long_identifier)@local.definition)
|
|
|
|
|
(exposes_list
|
|
|
|
|
(ident) @local.reference)
|
|
|
|
|
|
2024-06-15 13:35:42 +02:00
|
|
|
(import_expr
|
|
|
|
|
(as)
|
|
|
|
|
(module) @local.definition)
|
|
|
|
|
|
2024-03-31 19:43:49 +02:00
|
|
|
(opaque_type_def
|
|
|
|
|
(apply_type
|
|
|
|
|
(concrete_type) @local.definition.type))
|
|
|
|
|
|
|
|
|
|
(alias_type_def
|
|
|
|
|
(apply_type
|
|
|
|
|
(concrete_type) @local.definition.type))
|
|
|
|
|
|
|
|
|
|
(value_declaration
|
|
|
|
|
(decl_left
|
|
|
|
|
(identifier_pattern
|
|
|
|
|
(identifier) @local.definition.function))
|
|
|
|
|
(expr_body
|
|
|
|
|
(anon_fun_expr)))
|
|
|
|
|
|
|
|
|
|
(value_declaration
|
|
|
|
|
(decl_left
|
|
|
|
|
(identifier_pattern
|
|
|
|
|
(identifier) @local.definition.var)))
|
|
|
|
|
|
|
|
|
|
(identifier_pattern
|
|
|
|
|
(identifier) @local.definition)
|
|
|
|
|
|
2025-03-09 12:06:59 +01:00
|
|
|
(when_is_branch
|
|
|
|
|
pattern: (_
|
|
|
|
|
(identifier_pattern
|
|
|
|
|
(identifier) @local.definition)))
|
|
|
|
|
|
|
|
|
|
(spread_pattern
|
|
|
|
|
(identifier) @local.definition)
|
|
|
|
|
|
2024-03-31 19:43:49 +02:00
|
|
|
(identifier) @local.reference
|
|
|
|
|
|
|
|
|
|
(tag_expr
|
|
|
|
|
(tag)) @local.reference
|