mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
zig fmt: additionally format .zon files
This commit is contained in:
parent
1fa2b37d29
commit
a8edd67d3d
@ -4523,7 +4523,7 @@ fn fmtPathDir(
|
||||
|
||||
if (is_dir and (mem.eql(u8, entry.name, "zig-cache") or mem.eql(u8, entry.name, "zig-out"))) continue;
|
||||
|
||||
if (is_dir or entry.kind == .File and mem.endsWith(u8, entry.name, ".zig")) {
|
||||
if (is_dir or entry.kind == .File and (mem.endsWith(u8, entry.name, ".zig") or mem.endsWith(u8, entry.name, ".zon"))) {
|
||||
const full_path = try fs.path.join(fmt.gpa, &[_][]const u8{ file_path, entry.name });
|
||||
defer fmt.gpa.free(full_path);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user