nvim-treesitter/runtime/queries/gleam/locals.scm

32 lines
594 B
Scheme
Raw Normal View History

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
(identifier) @local.reference
2022-02-06 10:56:43 -08:00
; Block Scope
(block) @local.scope
2022-02-06 10:56:43 -08:00
; Case Scope
(case_clause) @local.scope