We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d2ed09 commit 02a9c35Copy full SHA for 02a9c35
lib/pry/code.rb
@@ -48,8 +48,8 @@ def complete_expression?(str)
48
end
49
50
51
- # Assert that a line which ends with a , is incomplete.
52
- str !~ /[,]\z/
+ # Assert that a line which ends with a , or \ is incomplete.
+ str !~ /[,\\]\s*\z/
53
rescue SyntaxError => e
54
if incomplete_user_input_exception?(e)
55
false
0 commit comments