mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Add Gleam locals
This commit is contained in:
parent
4e90279821
commit
eb4ccc65e9
1 changed files with 24 additions and 0 deletions
24
queries/gleam/locals.scm
Normal file
24
queries/gleam/locals.scm
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
; 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue