fix parser_test and vfmt.v
parent
7369cb7b86
commit
f6db36d7f0
|
@ -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)
|
||||||
|
|
|
@ -6,6 +6,7 @@ import (
|
||||||
v.table
|
v.table
|
||||||
v.checker
|
v.checker
|
||||||
v.eval
|
v.eval
|
||||||
|
v.pref
|
||||||
term
|
term
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue