#302 Ruby symbol parsing error

closed-fixed
General (289)
5
2014-08-18
2009-04-25
Anonymous
No

This is for 0.16 and svn 3736, current as of April 24 '09.
The ruby symbol parser seems to fail to detect certain do...end constructs, like

File.open("somefile","r") do |infile|
infile.readline
end

The "end" statement is detected, but not the preceding "do", making the organization of the symbols in the tree browser inaccurate. Yes, I know ruby syntax is awful :-(

See attached sample file.

Discussion

  • Nobody/Anonymous

    Example ruby file

     
  • Conrad Steenberg

    Sorry, I forgot to log in before filing this bug.

     
  • Enrico Tröger

    Enrico Tröger - 2009-04-27
    • assigned_to: nobody --> eht16
    • status: open --> closed-fixed
     
  • Enrico Tröger

    Enrico Tröger - 2009-04-27

    Thanks for reporting. This should be fixed in SVN r3741.

    However, I don't know Ruby at all and it might be this change breaks something else. So, feedback is welcome.

     
  • Conrad Steenberg

    Works perfectly here, thanks!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks