mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -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
51
runtime/queries/fennel/folds.scm
Normal file
51
runtime/queries/fennel/folds.scm
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
; compounds
|
||||
[
|
||||
(list)
|
||||
(table)
|
||||
(sequence)
|
||||
] @fold
|
||||
|
||||
; sub-forms / special compounds
|
||||
[
|
||||
(list_binding)
|
||||
(table_binding)
|
||||
(sequence_binding)
|
||||
(table_metadata)
|
||||
(sequence_arguments)
|
||||
(let_vars)
|
||||
(case_guard_or_special)
|
||||
(case_guard)
|
||||
(case_catch)
|
||||
] @fold
|
||||
|
||||
; forms
|
||||
[
|
||||
(quote_form)
|
||||
(unquote_form)
|
||||
(local_form)
|
||||
(var_form)
|
||||
(set_form)
|
||||
(global_form)
|
||||
(let_form)
|
||||
(fn_form)
|
||||
(lambda_form)
|
||||
(hashfn_form)
|
||||
(each_form)
|
||||
(collect_form)
|
||||
(icollect_form)
|
||||
(accumulate_form)
|
||||
(for_form)
|
||||
(fcollect_form)
|
||||
(faccumulate_form)
|
||||
(case_form)
|
||||
(match_form)
|
||||
(case_try_form)
|
||||
(match_try_form)
|
||||
] @fold
|
||||
|
||||
; reader macros
|
||||
(quote_reader_macro
|
||||
expression: (_) @fold)
|
||||
|
||||
(quasi_quote_reader_macro
|
||||
expression: (_) @fold)
|
||||
Loading…
Add table
Add a link
Reference in a new issue