diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-05-07 21:53:17 -0400 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2023-05-08 10:58:31 +0300 |
| commit | bac3a28214d07f761e25fcc12a6708f70c8ccc01 (patch) | |
| tree | 2d67ae67ed9a416c2d8a02ee21365a4fdbe9331c /test/behavior/vector.zig | |
| parent | ff59c4584041517a2ee07cccf923ef5460032d68 (diff) | |
| download | zig-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 'test/behavior/vector.zig')
0 files changed, 0 insertions, 0 deletions
