Skip to content

Commit a8edd67

Browse files
alichraghiandrewrk
authored andcommitted
zig fmt: additionally format .zon files
1 parent 1fa2b37 commit a8edd67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4523,7 +4523,7 @@ fn fmtPathDir(
45234523

45244524
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"))) {
45274527
const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name });
45284528
defer fmt.gpa.free(full_path);
45294529

0 commit comments

Comments
 (0)