# fmt: avoid canonicalizing enum fields named \`@"\_"\` to \`\_\` · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/bac3a28214d07f761e25fcc12a6708f70c8ccc01)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: bac3a28214d07f761e25fcc12a6708f70c8ccc01

Requested commit: bac3a28214d07f761e25fcc12a6708f70c8ccc01

Commit: bac3a28214d07f761e25fcc12a6708f70c8ccc01

Tree: 2d67ae67ed9a416c2d8a02ee21365a4fdbe9331c

Author: Jacob Young

Committer: Veikka Tuominen

## Message

```
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.

```

## Parents

- [ff59c4584041517a2ee07cccf923ef5460032d68](https://git.cafe/gitcafe/zig/commit/ff59c4584041517a2ee07cccf923ef5460032d68?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/bac3a28214d07f761e25fcc12a6708f70c8ccc01?format=markdown)
