1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
Joe Conigliaro 2019-08-29 17:29:12 +10:00 committed by Alexander Medvednikov
parent beef793e83
commit 4a506b0566

View File

@ -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 {