You are here: PSPad forum > Bug report / Hlášení chyb > Re: 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.
Posted by: pspad | Date: 2015-07-17 13:45 | IP: IP Logged
Do you mean Syntax highlight or Code explorer?
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
Posted by: therium | Date: 2015-11-18 13:27 | IP: IP Logged
I think it was code explorer. Thanks.
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR