mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,26 +1,32 @@
|
|||
[
|
||||
(program)
|
||||
(fn)
|
||||
(lambda)
|
||||
(let)
|
||||
(each)
|
||||
(for)
|
||||
(match)
|
||||
(program)
|
||||
(fn)
|
||||
(lambda)
|
||||
(let)
|
||||
(each)
|
||||
(for)
|
||||
(match)
|
||||
] @local.scope
|
||||
|
||||
(
|
||||
(list . (symbol) @_special) @local.scope
|
||||
(#any-of? @_special
|
||||
"while" "if" "when" "do" "collect" "icollect" "accumulate")
|
||||
)
|
||||
((list
|
||||
.
|
||||
(symbol) @_special) @local.scope
|
||||
(#any-of? @_special "while" "if" "when" "do" "collect" "icollect" "accumulate"))
|
||||
|
||||
(fn name: (symbol) @local.definition.function
|
||||
(fn
|
||||
name: (symbol) @local.definition.function
|
||||
(#set! definition.function.scope "parent"))
|
||||
(lambda name: (symbol) @local.definition.function
|
||||
|
||||
(lambda
|
||||
name: (symbol) @local.definition.function
|
||||
(#set! definition.function.scope "parent"))
|
||||
|
||||
; TODO: use @local.definition.parameter for parameters
|
||||
(binding (symbol) @local.definition.var)
|
||||
(for_clause . (symbol) @local.definition.var)
|
||||
(binding
|
||||
(symbol) @local.definition.var)
|
||||
|
||||
(for_clause
|
||||
.
|
||||
(symbol) @local.definition.var)
|
||||
|
||||
(symbol) @local.reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue