-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected return (LocalJumpError) #2438
Comments
Interesting, RDoc uses yet another variant to check if it's valid Ruby syntax: So this issue is about supporting |
This also happens in
Seems the exact same issue. |
Some idea to fix this, we'd store the ReturnID in FrameDescriptor#getInfo(), and so when parsing the eval we could find the proper ReturnID to jump to. Semantics are like (i.e., the return inside the eval returns to the surrounding method, and not allowed top-level):
|
When we implement this we should reenable rdoc CI: ruby/rdoc#1029 |
Another idea, because it's quite complicated to store ReturnID for methods & lambda in FrameDescriptor without a lot of changes or performance impact:
|
ruby/rdoc#1032 so rdoc uses the more portable pattern |
throws an exception - unexpected return (LocalJumpError)
suprisingly MRI Ruby returns
parseable
which is obviously notThe code about is simplified version of this https://github.com/ruby/rdoc/blob/master/lib/rdoc/markup/to_html.rb#L214
The text was updated successfully, but these errors were encountered: