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