|
From: SourceForge.net <no...@so...> - 2009-03-31 16:38:41
|
Plugin Feature Requests item #2723116, was opened at 2009-03-31 11:57 Message generated for change (Settings changed) made by hertzhaft You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=997936&aid=2723116&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 2 Private: No Submitted By: Ben Golding (bgolding) >Assigned to: Martin Raspe (hertzhaft) Summary: PerlSideKick should allow filtering predeclarations Initial Comment: jEdit 4.3pre16 / Windows XP + SP3 / Sun JRE 1.6.0_11 ------------ File --> New in Mode --> perl Enter the following: sub foo(); sub foo() { } Save as "foo.pl" Open Sidekick. The subroutine foo appears twice, because it is predeclared. ------------ This is by design, I guess. However I always predeclare all perl subroutines, which allows to avoid some warnings when using mutual recursion etc. Then the sidekick gets cluttered. So I would like to add an option to filter out the extra entries for predeclarations. ---------------------------------------------------------------------- >Comment By: Martin Raspe (hertzhaft) Date: 2009-03-31 18:38 Message: Yes, it's by design, as subroutines with the same name can be in different "package" sections in the same file. I'll look into the code to see if the subroutine regex can be changed to disregard predeclarations. Martin ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=997936&aid=2723116&group_id=588 |