mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
31
runtime/queries/gleam/locals.scm
Normal file
31
runtime/queries/gleam/locals.scm
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
; Let Binding Definition
|
||||
(let
|
||||
pattern: (identifier) @local.definition)
|
||||
|
||||
; List Pattern Definitions
|
||||
(list_pattern
|
||||
(identifier) @local.definition)
|
||||
|
||||
(list_pattern
|
||||
assign: (identifier) @local.definition)
|
||||
|
||||
; Tuple Pattern Definition
|
||||
(tuple_pattern
|
||||
(identifier) @local.definition)
|
||||
|
||||
; Record Pattern Definition
|
||||
(record_pattern_argument
|
||||
pattern: (identifier) @local.definition)
|
||||
|
||||
; Function Parameter Definition
|
||||
(function_parameter
|
||||
name: (identifier) @local.definition)
|
||||
|
||||
; References
|
||||
(identifier) @local.reference
|
||||
|
||||
; Block Scope
|
||||
(block) @local.scope
|
||||
|
||||
; Case Scope
|
||||
(case_clause) @local.scope
|
||||
Loading…
Add table
Add a link
Reference in a new issue