1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:40:05 +08:00
SpaceVim/bundle/nvim-treesitter/queries/gleam/locals.scm
2022-04-14 12:01:23 +08:00

25 lines
543 B
Scheme

; Let Binding Definition
(let pattern: (identifier) @definition)
; List Pattern Definitions
(list_pattern (identifier) @definition)
(list_pattern assign: (identifier) @definition)
; Tuple Pattern Definition
(tuple_pattern (identifier) @definition)
; Record Pattern Definition
(record_pattern_argument pattern: (identifier) @definition)
; Function Parameter Definition
(function_parameter name: (identifier) @definition)
; References
(identifier) @reference
; Function Body Scope
(function_body) @scope
; Case Scope
(case_clause) @scope