aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/perl/fold.scm
blob: 17fd114be2dcd6b218356250587a784fa9480404 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(comment) @fold
(pod) @fold

; fold the block-typed package statements only
(package_statement (block)) @fold

[(subroutine_declaration_statement)
 (conditional_statement)
 (loop_statement)
 (for_statement)
 (cstyle_for_statement)
 (block_statement)
 (phaser_statement)] @fold

(anonymous_subroutine_expression) @fold

; perhaps folks want to fold these too?
[(anonymous_array_expression)
 (anonymous_hash_expression)] @fold