mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat(perl)!: switch to tree-sitter-perl org's parser
This commit is contained in:
parent
7c67a1a923
commit
bb3f8f40b1
5 changed files with 156 additions and 187 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue