I'm not using any folding and skeptical about such approaches with regexes.
But your example could have another problem:
Perl defines that =POD commands are surrounded by empty lines. Many IDEs (and even Perl) are not enforcing this, but cperl-mode does!
So do you still have your problem with...?
=head2 STUFF =over =item foo Do foo =cut sub foo { return 'foo'; }
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re: [OT] Folding Perl code with Emacs 25
by LanX
in thread [OT] Folding Perl code with Emacs 25
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |