#360 predeclared subroutines displayed incorrectly in the outline

v0.5.x
closed-fixed
nobody
Outline (28)
5
2007-02-03
2007-01-17
Amir E. Aharoni
No

Hello,

I am using EPIC 0.5.29 and Eclipse 3.2.1 .

I have a Perl program in which several subroutines are pre-declared in the beginning of a program, then there are some statements, then exit, and then the subroutines are defined. See attached file for the test case.

Problem: The editor thinks that the pre-declaration of sub print01 is the beginning of its definition. So if i fold it, all the code is folded from line 8 (sub print01;) to line 16, which has a closing curly brace.

Furthermore, in the outline view, print01 appears twice under subroutines.

Discussion

  • test case

     
    Attachments
  • Logged In: YES
    user_id=1471921
    Originator: YES

    I browsed the EPIC source very randomly, and it seems to me that the bug is somewhere around `private void updateSubState()' in SourceFile.java.

     
  • Jan Ploski
    Jan Ploski
    2007-02-03

    Logged In: YES
    user_id=86907
    Originator: NO

    Fixed in 0.5.30.

     
  • Jan Ploski
    Jan Ploski
    2007-02-03

    • status: open --> closed-fixed