Minor changes to printer to use a bit set rather than booleans for list options

This commit is contained in:
gingerBill
2021-05-21 13:42:29 +01:00
parent cc1d3a7b19
commit f0c9f82e1b
3 changed files with 105 additions and 56 deletions
+2 -1
View File
@@ -10,7 +10,7 @@ simplify :: proc(file: ^ast.File) {
}
format :: proc(source: string, config: printer.Config, parser_flags := parser.Flags{}, allocator := context.allocator) -> (string, bool) {
format :: proc(filepath: string, source: string, config: printer.Config, parser_flags := parser.Flags{}, allocator := context.allocator) -> (string, bool) {
pkg := ast.Package {
kind = .Normal,
};
@@ -18,6 +18,7 @@ format :: proc(source: string, config: printer.Config, parser_flags := parser.Fl
file := ast.File {
pkg = &pkg,
src = source,
fullpath = filepath,
};
p := parser.default_parser(parser_flags);