in reply to [Emacs] patching cperl-mode to highlight syntax without POD newlines

If you are just reading the code, why not filter the source files to convert the "pod blocks" into ordinary comment blocks. For example:

#=h1 ------------------------------------------------------- # DEFAULT_getaction # => bla bla # => blubber di blub #=cut ------------------------------------------------------ sub DEFAULT_getaction{ my( $cmd, $sth, @row , $jahrpr ) ; # ...

Even if you are editing the code, this transformation is reversible, if needed.

  • Comment on Re: [Emacs] patching cperl-mode to highlight syntax without POD newlines
  • Download Code

Replies are listed 'Best First'.
Re^2: [Emacs] patching cperl-mode to highlight syntax without POD newlines
by LanX (Saint) on Apr 24, 2015 at 16:46 UTC
    I'm doing something similar ATM.

    But it's a general problem resulting from the fact that Perl and POD parsers have differing specifications.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      Agreed. Also, I really don't see much benefit in requiring POD command paragraphs be surrounded by blank lines - other than human readability of "raw" POD.