Menu

#124 PerlSideKick should allow filtering predeclarations

open
None
2
2009-03-31
2009-03-31
Ben Golding
No

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.

Discussion

  • Ben Golding

    Ben Golding - 2009-03-31
    • priority: 5 --> 2
     
  • Martin Raspe

    Martin Raspe - 2009-03-31

    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

     
  • Martin Raspe

    Martin Raspe - 2009-03-31
    • assigned_to: nobody --> hertzhaft
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.