diff --git a/lib/pry/code.rb b/lib/pry/code.rb index c53f7331..1fae1543 100644 --- a/lib/pry/code.rb +++ b/lib/pry/code.rb @@ -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. #