From 5d606000b93d8f2e0419034d72641dc41e0460e4 Mon Sep 17 00:00:00 2001 From: Toby Webb Date: Sat, 12 Oct 2019 20:33:53 +0200 Subject: [PATCH] scanner: fix Scanner.debug_tokens skipping first char --- compiler/scanner.v | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/scanner.v b/compiler/scanner.v index 5829f6ec8c..d89265a46f 100644 --- a/compiler/scanner.v +++ b/compiler/scanner.v @@ -722,6 +722,7 @@ fn (s &Scanner) expect(want string, start_pos int) bool { fn (s mut Scanner) debug_tokens() { s.pos = 0 + s.started = false s.debug = true fname := s.file_path.all_after(os.PathSeparator)