commit | 80a8d473f606e08dd43808b826b8b236266751a0 | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Wed May 11 16:05:22 2016 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Wed May 11 16:05:22 2016 +0100 |
tree | ac57f0f3f0f283074e904479d0d4672dd0af23d7 | |
parent | 9b4502b7e8cc2a4f69fdd03beb73a1971d0c7ce1 [diff] [blame] |
py/repl: Fix handling of backslash in quotes when checking continuation.
diff --git a/py/repl.c b/py/repl.c index c938a6a..4006bbf 100644 --- a/py/repl.c +++ b/py/repl.c
@@ -88,7 +88,7 @@ } 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++; }