Skip to content

Commit 80a8d47

Browse files
committed
py/repl: Fix handling of backslash in quotes when checking continuation.
1 parent 9b4502b commit 80a8d47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/repl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ bool mp_repl_continue_with_input(const char *input) {
8888
} else if (in_quote == Q_NONE || in_quote == Q_1_DOUBLE) {
8989
in_quote = Q_1_DOUBLE - in_quote;
9090
}
91-
} else if (*i == '\\' && (i[1] == '\'' || i[1] == '"')) {
91+
} else if (*i == '\\' && (i[1] == '\'' || i[1] == '"' || i[1] == '\\')) {
9292
if (in_quote != Q_NONE) {
9393
i++;
9494
}

0 commit comments

Comments
 (0)