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:
John Mair 2012-04-16 12:25:08 +12:00
parent 6cb64464fc
commit c2a41b67f9
1 changed files with 2 additions and 1 deletions

View File

@ -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.
#