py/repl: Fix handling of backslash in quotes when checking continuation.

This commit is contained in:
Damien George 2016-05-11 16:05:22 +01:00
parent 9b4502b7e8
commit 80a8d473f6

View File

@ -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++;
}