authorgravatar for alichraghi@proton.meAli Chraghi <alichraghi@proton.me> 2023-02-07 16:34:03+03:30
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-02-13 02:20:02-05:00
loga8edd67d3d87b585ebbea226bb916ee1f7263458
tree1c9f86b28e277d7b838c57aea7db6ee5b8e72f0a
parent1fa2b37d2948e0e2672785feeb38b30ad72de76f

zig fmt: additionally format .zon files


1 files changed, 1 insertions(+), 1 deletions(-)

src/main.zig+1-1
...@@ -4523,7 +4523,7 @@ fn fmtPathDir(...@@ -4523,7 +4523,7 @@ fn fmtPathDir(
45234523
4524 if (is_dir and (mem.eql(u8, entry.name, "zig-cache") or mem.eql(u8, entry.name, "zig-out"))) continue;4524 if (is_dir and (mem.eql(u8, entry.name, "zig-cache") or mem.eql(u8, entry.name, "zig-out"))) continue;
45254525
4526 if (is_dir or entry.kind == .File and mem.endsWith(u8, entry.name, ".zig")) {4526 if (is_dir or entry.kind == .File and (mem.endsWith(u8, entry.name, ".zig") or mem.endsWith(u8, entry.name, ".zon"))) {
4527 const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name });4527 const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name });
4528 defer fmt.gpa.free(full_path);4528 defer fmt.gpa.free(full_path);
45294529