We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 443e018 commit 73c79b9Copy full SHA for 73c79b9
1 file changed
py/repl.c
@@ -67,6 +67,11 @@ bool mp_repl_continue_with_input(const char *input) {
67
return true;
68
}
69
70
+ // continue if last character was backslash (for line continuation)
71
+ if (i[-1] == '\\') {
72
+ return true;
73
+ }
74
+
75
// continue if compound keyword and last line was not empty
76
if (starts_with_compound_keyword && i[-1] != '\n') {
77
0 commit comments