You are here: PSPad forum > Bug report / Hlášení chyb > Re: PSPad 4.5.8 finds packages in Perl POD section but shouldn't

Re: PSPad 4.5.8 finds packages in Perl POD section but shouldn't

#1 PSPad 4.5.8 finds packages in Perl POD section but shouldn't

Posted by: therium | Date: 2015-07-17 12:24 | IP: IP Logged

PSPad 4.5.8(2482) on Win 7

PSPad seems to scan for packages for keywords. But I have an SQL statement inside a Perl POD documentation, with a table named PACKAGE, and PSPad is thinking this is an actual Perl package when it is not.

Perl POD inside my Perl .pl file basically looks like this:

=pod

SELECT
[stuff deleted]
PKG.SHIP_DATE AS ShipDate,
PKG.TRACKING_NO AS TrackingNo,
[stuff deleted]
FROM
PACKAGE PKG
LEFT OUTER JOIN SALES_ORDER S ON S.SO_ID = PKG.SO_ID
[stuff deleted]
WHERE...
;

=cut

Can you have PSPad ignore anything between "=pod" and "=cut" lines in Perl files? Also, POD documentation can appear multiple times anywhere in a Perl file, it just has to begin with "=pod" and end with "=end" on their own lines.

Thank you.

Edited 2 time(s). Last edit at 2015-07-17 12:25 by therium.

Options: Reply | Quote | Up ^


#2 Re: PSPad 4.5.8 finds packages in Perl POD section but shouldn't

Posted by: pspad | Date: 2015-07-17 13:45 | IP: IP Logged

Do you mean Syntax highlight or Code explorer?

Options: Reply | Quote | Up ^


#3 Re: PSPad 4.5.8 finds packages in Perl POD section but shouldn't

Posted by: pspad | Date: 2015-08-04 10:26 | IP: IP Logged

Code parser for Perl will ignore =pod .. =cut.
This modification will be available in next 4.6.0 developer build

Options: Reply | Quote | Up ^


#4 Re: PSPad 4.5.8 finds packages in Perl POD section but shouldn't

Posted by: therium | Date: 2015-11-18 13:27 | IP: IP Logged

I think it was code explorer. Thanks.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2021 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR