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

parser/scanner: replace p.peek_tok2/3 with p.peek_token(2/3) (#8946)

This commit is contained in:
Delyan Angelov
2021-02-24 20:03:53 +02:00
committed by GitHub
parent 1dd1be4400
commit 1c0eefae38
12 changed files with 183 additions and 75 deletions

View File

@ -81,7 +81,7 @@ fn new_parser(srce string, convert_type bool) Parser {
}
}
return Parser{
scanner: scanner.new_scanner(src, .parse_comments, &pref.Preferences{})
scanner: scanner.new_scanner(src, .parse_comments, &pref.Preferences{output_mode: .silent})
convert_type: convert_type
}
}