in reply to [OT] Folding Perl code with Emacs 25

Hi

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

Replies are listed 'Best First'.
Re^2: [OT] Folding Perl code with Emacs 25
by loris (Hermit) on Sep 25, 2018 at 06:31 UTC
    Unfortunately, adding empty lines doesn't make any difference. It looks as if the outline level isn't being set correctly, so maybe you're right to be skeptical, because I can't get it to work.

    Thanks,

    loris

      I'll try to look into it this weekend.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice