Allow ',' and '\' to continue lines [Fixes #300]
This commit is contained in:
parent
a04c5f488a
commit
4098233435
|
@ -556,7 +556,9 @@ class Pry
|
|||
eval("BEGIN{throw :valid}\n#{str}", binding, Pry.eval_path)
|
||||
}
|
||||
end
|
||||
true
|
||||
|
||||
# Assert that a line which ends with a , or a \ is incomplete.
|
||||
str !~ /[,\\]$/
|
||||
rescue SyntaxError => e
|
||||
if incomplete_user_input_exception?(e)
|
||||
false
|
||||
|
|
Loading…
Reference in New Issue