aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-05-07 21:53:17 -0400
committerVeikka Tuominen <git@vexu.eu>2023-05-08 10:58:31 +0300
commitbac3a28214d07f761e25fcc12a6708f70c8ccc01 (patch)
tree2d67ae67ed9a416c2d8a02ee21365a4fdbe9331c /src/Module.zig
parentff59c4584041517a2ee07cccf923ef5460032d68 (diff)
downloadzig-bac3a28214d07f761e25fcc12a6708f70c8ccc01.tar.gz
zig-bac3a28214d07f761e25fcc12a6708f70c8ccc01.zip
fmt: avoid canonicalizing enum fields named `@"_"` to `_`
This can be used to escape the usual meaning of `_` to indicate a non-exhaustive enum and create an enum tag that is a literal underscore, so zig fmt should allow this syntax. Before, zig fmt changes const E = enum { @"_" }; to the semantically different const E = enum { _ }; After, it remains the same.
Diffstat (limited to 'src/Module.zig')
0 files changed, 0 insertions, 0 deletions