scanner: fix Scanner.debug_tokens skipping first char

pull/2316/head
Toby Webb 2019-10-12 20:33:53 +02:00 committed by Alexander Medvednikov
parent 85c05b6822
commit 5d606000b9
1 changed files with 1 additions and 0 deletions

View File

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