-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorzig fmt
Milestone
Description
Zig Version
0.10.0-dev.63+6b8e33d14
Steps to Reproduce
const a = .{
// zig fmt: off
.{ 0, 1 },
// zig fmt: on
};
// No formatting here...
const b = 2;
test {
_ = 1;
}
// This fixes it:
// zig fmt: on
const c = 3;Expected Behavior
Expected // zig fmt: on to re-enable formatting
Actual Behavior
The zig fmt: on directive seems to be ignored inside a static struct/array declaration, even when zig fmt: off took effect inside it.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorzig fmt