aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/fennel/folds.scm
blob: 0862e5926621832409cba30a68fd41f8c0e1510a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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)