feat(perl)!: switch to tree-sitter-perl org's parser

This commit is contained in:
Veesh Goldman 2023-10-17 19:32:09 +00:00 committed by Amaan Qureshi
parent 7c67a1a923
commit bb3f8f40b1
5 changed files with 156 additions and 187 deletions

View file

@ -1,11 +1,19 @@
[
(function_definition)
(if_statement)
(unless_statement)
(while_statement)
(until_statement)
(for_statement_1)
(for_statement_2)
(standalone_block)
(pod_statement)
] @fold
(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