2023-10-17 19:32:09 +00:00
|
|
|
(comment)+ @fold
|
2024-01-06 15:05:50 +09:00
|
|
|
|
2023-10-17 19:32:09 +00:00
|
|
|
(pod) @fold
|
|
|
|
|
|
2024-08-07 14:30:44 +01:00
|
|
|
; fold the block-typed package and class statements only
|
2024-01-06 15:05:50 +09:00
|
|
|
(package_statement
|
|
|
|
|
(block)) @fold
|
2023-10-17 19:32:09 +00:00
|
|
|
|
2024-08-07 14:30:44 +01:00
|
|
|
(class_statement
|
|
|
|
|
(block)) @fold
|
|
|
|
|
|
2024-01-06 15:05:50 +09:00
|
|
|
[
|
|
|
|
|
(subroutine_declaration_statement)
|
2024-08-07 14:30:44 +01:00
|
|
|
(method_declaration_statement)
|
2024-01-06 15:05:50 +09:00
|
|
|
(conditional_statement)
|
|
|
|
|
(loop_statement)
|
|
|
|
|
(for_statement)
|
|
|
|
|
(cstyle_for_statement)
|
|
|
|
|
(block_statement)
|
2024-08-07 14:30:44 +01:00
|
|
|
(defer_statement)
|
2024-01-06 15:05:50 +09:00
|
|
|
(phaser_statement)
|
|
|
|
|
] @fold
|
2023-10-17 19:32:09 +00:00
|
|
|
|
2024-08-07 14:30:44 +01:00
|
|
|
(try_statement
|
|
|
|
|
(block) @fold)
|
|
|
|
|
|
|
|
|
|
(eval_expression
|
|
|
|
|
(block) @fold)
|
|
|
|
|
|
2023-10-17 19:32:09 +00:00
|
|
|
(anonymous_subroutine_expression) @fold
|
|
|
|
|
|
|
|
|
|
; perhaps folks want to fold these too?
|
2024-01-06 15:05:50 +09:00
|
|
|
[
|
|
|
|
|
(anonymous_array_expression)
|
|
|
|
|
(anonymous_hash_expression)
|
|
|
|
|
] @fold
|