fix parser_test and vfmt.v

pull/4134/head
Alexander Medvednikov 2020-03-27 15:24:08 +01:00
parent 7369cb7b86
commit f6db36d7f0
2 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,7 @@ fn (foptions &FormatOptions) format_file(file string) {
eprintln('vfmt2 running fmt.fmt over file: $file') eprintln('vfmt2 running fmt.fmt over file: $file')
} }
table := table.new_table() table := table.new_table()
file_ast := parser.parse_file(file, table, .parse_comments) file_ast := parser.parse_file(file, table, .parse_comments, &pref.Preferences{})
formatted_content := fmt.fmt(file_ast, table) formatted_content := fmt.fmt(file_ast, table)
file_name := os.file_name(file) file_name := os.file_name(file)
vfmt_output_path := os.join_path(os.temp_dir(), 'vfmt_' + file_name) vfmt_output_path := os.join_path(os.temp_dir(), 'vfmt_' + file_name)

View File

@ -6,6 +6,7 @@ import (
v.table v.table
v.checker v.checker
v.eval v.eval
v.pref
term term
) )