Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#125 Open SUB Declaration fails for "sub MyFct # Comment"

v0.3.9
closed-fixed
LeO
Editor (234)
5
2005-07-15
2005-01-28
Anonymous
No

The function "Open SUB Declaration"
(org\epic\perleditor\popupmenus\OpenDeclaration.java)
does not work if a sub is followed by a comment. E.g.

sub MyFunction # this is the comment
{
...
}

will not be found if I search for a reference of
MyFunction.

I analyzed
org\epic\perleditor\popupmenus\OpenDeclaration.java:

The line:
subList = SourceParser.getElements(text, "^[\\s]
*sub\\s+([^\\n\\r{]+)", "", "", false);

must be replaced by (added the # charater to the list):
subList = SourceParser.getElements(text, "^[\\s]
*sub\\s+([^\\n\\r{#]+)", "", "", false);

to get it work.

Kind regards

JJJ.Kramer@web.de

Discussion

  • LeO
    LeO
    2005-01-31

    Logged In: YES
    user_id=703323

    Seems like you're right.

    The only open issue for this, what is requested for the
    outline? Cause it displays 'MyFunction # this is the
    comment', but should it display the comment as well?

     
  • LeO
    LeO
    2005-01-31

    • assigned_to: nobody --> leo_forge
     
  • JoK
    JoK
    2005-02-01

    Logged In: YES
    user_id=1206980

    In the outline I don't like any comment, only the function
    names.

     
  • LeO
    LeO
    2005-07-15

    • status: open --> closed-fixed
     
  • LeO
    LeO
    2005-07-15

    Logged In: YES
    user_id=703323

    Should be fixed in Verison 0.3.11