tests: fix scanner_test.v

pull/5801/head
Alexander Medvednikov 2020-07-11 11:51:58 +02:00
parent d4d552fb00
commit 549d7a487d
1 changed files with 3 additions and 2 deletions

View File

@ -4,9 +4,10 @@
module scanner
import v.token
import v.pref
fn scan_kinds(text string) []token.Kind {
mut scanner := new_scanner(text, .skip_comments, false)
mut scanner := new_scanner(text, .skip_comments, &pref.Preferences{})
mut token_kinds := []token.Kind{}
for {
tok := scanner.scan()