mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
zig fmt: Fix packed -> bitpack causing an error, integrate with --stdin
This makes `zig fmt` use the same tactic as the ambiguous precedence stuff for automatically renaming packed -> bitpack. That is, the parser still emits an error for `packed`, but all such "expected 'bitpack', found 'packed'" errors are removed during `zig fmt` since the render process fixes them. Additionally, this commit makes both packed -> bitpack and ambiguous precedence fixes work with the --stdin flag, which wasn't the case previously.
This commit is contained in:
parent
a7808addac
commit
7fb365cd66
1 changed files with 129 additions and 86 deletions
215
src/fmt.zig
215
src/fmt.zig
Loading…
Add table
Add a link
Reference in a new issue