mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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
56
runtime/queries/fennel/locals.scm
Normal file
56
runtime/queries/fennel/locals.scm
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
(program) @local.scope
|
||||
|
||||
(symbol) @local.reference
|
||||
|
||||
[
|
||||
(let_form)
|
||||
(fn_form)
|
||||
(lambda_form)
|
||||
(each_form)
|
||||
(for_form)
|
||||
(collect_form)
|
||||
(icollect_form)
|
||||
(accumulate_form)
|
||||
(for_form)
|
||||
(fcollect_form)
|
||||
(faccumulate_form)
|
||||
(case_form)
|
||||
(match_form)
|
||||
(case_try_form)
|
||||
(match_try_form)
|
||||
(if_form)
|
||||
] @local.scope
|
||||
|
||||
(list
|
||||
call: (symbol) @_call
|
||||
(#any-of? @_call "while" "when" "do")) @local.scope
|
||||
|
||||
(fn_form
|
||||
name: [
|
||||
(symbol) @local.definition.function
|
||||
(multi_symbol
|
||||
member: (symbol_fragment) @local.definition.function .)
|
||||
]
|
||||
args: (sequence_arguments
|
||||
(symbol_binding) @local.definition.parameter)
|
||||
(#set! definition.function.scope "parent"))
|
||||
|
||||
(lambda_form
|
||||
name: [
|
||||
(symbol) @local.definition.function
|
||||
(multi_symbol
|
||||
member: (symbol_fragment) @local.definition.function .)
|
||||
]
|
||||
args: (sequence_arguments
|
||||
(symbol_binding) @local.definition.parameter)
|
||||
(#set! definition.function.scope "parent"))
|
||||
|
||||
(macro_form
|
||||
name: [
|
||||
(symbol) @local.definition.function
|
||||
(multi_symbol
|
||||
member: (symbol_fragment) @local.definition.function .)
|
||||
]
|
||||
args: (sequence_arguments
|
||||
(symbol_binding) @local.definition.parameter)
|
||||
(#set! definition.function.scope "parent"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue