Allow ',' and '\' to continue lines [Fixes #300]

This commit is contained in:
Conrad Irwin 2011-12-03 20:47:46 -08:00
parent a04c5f488a
commit 4098233435
1 changed files with 3 additions and 1 deletions

View File

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