nvim-treesitter/queries/perl/folds.scm

26 lines
444 B
Scheme
Raw Normal View History

(comment)+ @fold
2024-01-06 15:05:50 +09:00
(pod) @fold
; fold the block-typed package statements only
2024-01-06 15:05:50 +09:00
(package_statement
(block)) @fold
2024-01-06 15:05:50 +09:00
[
(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?
2024-01-06 15:05:50 +09:00
[
(anonymous_array_expression)
(anonymous_hash_expression)
] @fold