helix/runtime/queries/gleam/locals.scm
2024-09-13 13:28:20 -05:00

16 lines
437 B
Scheme

; 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