From 80a8d473f606e08dd43808b826b8b236266751a0 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 11 May 2016 16:05:22 +0100 Subject: [PATCH] py/repl: Fix handling of backslash in quotes when checking continuation. --- py/repl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/repl.c b/py/repl.c index c938a6aa2f..4006bbfb6e 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++; }