mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue