-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.zig fmt
Milestone
Description
Zig Version
0.14.0-dev.3051+cf059ee08
Steps to Reproduce and Observed Behavior
Initial code:
const bar = .{ .{ switch ({}) {
else => {},
} }, .{}, .{}, .{},
};After a single zig fmt invocation:
const bar = .{
.{switch ({}) {
else => {},
}},
.{}, .{},
.{},
};After two or more zig fmt invocations:
const bar = .{
.{switch ({}) {
else => {},
}},
.{},
.{},
.{},
};Expected Behavior
It should only take a single zig fmt invocation to reach the canonical format.
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorcontributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.zig fmt