From e27a3b65f1abe145a0cfd2b1c2272d492d830144 Mon Sep 17 00:00:00 2001 From: d2verb Date: Tue, 2 Jul 2019 01:07:22 +0900 Subject: [PATCH] Fix #898 --- compiler/scanner.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/scanner.v b/compiler/scanner.v index b0959f7b62..d9a245aeb5 100644 --- a/compiler/scanner.v +++ b/compiler/scanner.v @@ -151,8 +151,7 @@ fn (s mut Scanner) scan() ScanRes { // if s.file_path == 'd.v' { // println('\nscan()') // } - // if s.started { - if s.pos > 0 { + if s.started { // || (s.pos == 0 && s.text.len > 0 && s.text[s.pos] == `\n`) { s.pos++ }