aboutsummaryrefslogtreecommitdiff
path: root/py/repl.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-05-11 16:05:22 +0100
committerDamien George <damien.p.george@gmail.com>2016-05-11 16:05:22 +0100
commit80a8d473f606e08dd43808b826b8b236266751a0 (patch)
treeac57f0f3f0f283074e904479d0d4672dd0af23d7 /py/repl.c
parent9b4502b7e8cc2a4f69fdd03beb73a1971d0c7ce1 (diff)
py/repl: Fix handling of backslash in quotes when checking continuation.
Diffstat (limited to 'py/repl.c')
-rw-r--r--py/repl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/repl.c b/py/repl.c
index c938a6aa2..4006bbfb6 100644
--- a/py/repl.c
+++ b/py/repl.c
@@ -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++;
}