diff options
author | Damien George <damien.p.george@gmail.com> | 2016-05-11 16:05:22 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-05-11 16:05:22 +0100 |
commit | 80a8d473f606e08dd43808b826b8b236266751a0 (patch) | |
tree | ac57f0f3f0f283074e904479d0d4672dd0af23d7 /py/repl.c | |
parent | 9b4502b7e8cc2a4f69fdd03beb73a1971d0c7ce1 (diff) |
py/repl: Fix handling of backslash in quotes when checking continuation.
Diffstat (limited to 'py/repl.c')
-rw-r--r-- | py/repl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++; } |