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:
parent
4d2ed095c4
commit
02a9c35618
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue