From 4a506b05669d6c930a8754167fe2cb8465bc16a4 Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Thu, 29 Aug 2019 17:29:12 +1000 Subject: [PATCH] fix issue #1777 --- compiler/repl.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/repl.v b/compiler/repl.v index d832f76017..431e766270 100644 --- a/compiler/repl.v +++ b/compiler/repl.v @@ -22,7 +22,7 @@ fn (r mut Repl) checks(line string) bool { was_indent := r.indent > 0 for i := 0; i < line.len; i++ { - if line[i] == `\'` && line[i - 1] != `\\` { + if line[i] == `\'` && (i != 0 && line[i - 1] != `\\`) { in_string = !in_string } if line[i] == `{` && !in_string {