nvim-treesitter/runtime/queries/perl/folds.scm

37 lines
610 B
Scheme
Raw Permalink Normal View History

(comment)+ @fold
2024-01-06 15:05:50 +09:00
(pod) @fold
; fold the block-typed package and class statements only
2024-01-06 15:05:50 +09:00
(package_statement
(block)) @fold
(class_statement
(block)) @fold
2024-01-06 15:05:50 +09:00
[
(subroutine_declaration_statement)
(method_declaration_statement)
2024-01-06 15:05:50 +09:00
(conditional_statement)
(loop_statement)
(for_statement)
(cstyle_for_statement)
(block_statement)
(defer_statement)
2024-01-06 15:05:50 +09:00
(phaser_statement)
] @fold
(try_statement
(block) @fold)
(eval_expression
(block) @fold)
(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