diff --git a/cmd/tools/vfmt.v b/cmd/tools/vfmt.v index a0020b8244..d7aad0d6e8 100644 --- a/cmd/tools/vfmt.v +++ b/cmd/tools/vfmt.v @@ -156,7 +156,7 @@ fn (foptions &FormatOptions) format_file(file string) { eprintln('vfmt2 running fmt.fmt over file: $file') } 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) file_name := os.file_name(file) vfmt_output_path := os.join_path(os.temp_dir(), 'vfmt_' + file_name) diff --git a/vlib/v/parser/parser_test.v b/vlib/v/parser/parser_test.v index 4d1f4f2b26..94d802c587 100644 --- a/vlib/v/parser/parser_test.v +++ b/vlib/v/parser/parser_test.v @@ -6,6 +6,7 @@ import ( v.table v.checker v.eval + v.pref term )