fixed limitation in rbx melbourne parser
* complete_expression? on rbx was incorrectly raising for incomplete case statements * made incomplete_user_input_exception? privae
This commit is contained in:
parent
6cb64464fc
commit
c2a41b67f9
|
@ -68,12 +68,13 @@ class Pry
|
|||
case ex.message
|
||||
when /unexpected (\$end|end-of-file|END_OF_FILE)/, # mri, jruby, ironruby
|
||||
/unterminated (quoted string|string|regexp) meets end of file/, # "quoted string" is ironruby
|
||||
/missing 'end' for/, /: expecting '[})\]]'$/, /can't find string ".*" anywhere before EOF/, /: expecting keyword_end/ # rbx
|
||||
/missing 'end' for/, /: expecting '[})\]]'$/, /can't find string ".*" anywhere before EOF/, /: expecting keyword_end/, /expecting kWHEN/ # rbx
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
end
|
||||
private :incomplete_user_input_exception?
|
||||
|
||||
# Retrieve the first complete expression from the passed string.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue