Skip to content

ParseResult#continuable? expected to be true codes #3958

@tompng

Description

@tompng

I expect these incomplete code to be continuable, which currently returns false.

code reason
- - 1
[1, [1, 2]
f arg1, f arg1, arg2
def f = def f = body
def $a def $a.method_name; end
a = a = rhs
a,b a,b = rhs
a,1 a,1.b = rhs
class class ClassName; end
class a class a.method_chain::ClassName; end

This is a code I originally used to find continuable syntax error pattern in IRB, modified to find continuable? #=> false code.
https://gist.github.com/tompng/e6cfa660a0552d080cc07382849a3011

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions