py/repl: Fix handling of backslash in quotes when checking continuation.
This commit is contained in:
parent
9b4502b7e8
commit
80a8d473f6
|
@ -88,7 +88,7 @@ bool mp_repl_continue_with_input(const char *input) {
|
|||
} else if (in_quote == Q_NONE || in_quote == Q_1_DOUBLE) {
|
||||
in_quote = Q_1_DOUBLE - in_quote;
|
||||
}
|
||||
} else if (*i == '\\' && (i[1] == '\'' || i[1] == '"')) {
|
||||
} else if (*i == '\\' && (i[1] == '\'' || i[1] == '"' || i[1] == '\\')) {
|
||||
if (in_quote != Q_NONE) {
|
||||
i++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue