Skip to content

please add support for Perl #13

@majewsky

Description

@majewsky

Perl comments are from "#" until line end, like in most contemporary scripting languages.

some_statement(); # this comment lasts until the end of the line

Furthermore, the Perl interpreter skips over documentation written in the POD (Plain Old Documentation) format, so this should be treated like a comment, too. POD looks like this:

some_statement();

=pod

This is documentation.

=cut

some_other_statement();

It is started by any POD command. Such commands always start with "=" and must always appear at the beginning of the line (without any whitespace before them, i.e. column 1). The regexp /^=/ detects POD commands reasonably reliably in Perl code.

A documentation text always ends with the command "=cut", so the end can be found by /^=cut/.

A complete reference of the POD format is available at http://perldoc.perl.org/perlpod.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions