1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Lines ending with \ are incomplete (kudos to fowl)

This commit is contained in:
Conrad Irwin 2012-04-18 00:10:43 -07:00
parent 4d2ed095c4
commit 02a9c35618

View file

@ -48,8 +48,8 @@ class Pry
end
end
# Assert that a line which ends with a , is incomplete.
str !~ /[,]\z/
# Assert that a line which ends with a , or \ is incomplete.
str !~ /[,\\]\s*\z/
rescue SyntaxError => e
if incomplete_user_input_exception?(e)
false