1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

scanner: fix Scanner.debug_tokens skipping first char

This commit is contained in:
Toby Webb 2019-10-12 20:33:53 +02:00 committed by Alexander Medvednikov
parent 85c05b6822
commit 5d606000b9

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)