# zig fmt: array literal with hint · gitcafe/zig

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

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

Visibility: public

Requested revision: 1e3a200ba604c8d19fcc1119d01c2e80f2a8beca

Requested commit: 1e3a200ba604c8d19fcc1119d01c2e80f2a8beca

Commit: 1e3a200ba604c8d19fcc1119d01c2e80f2a8beca

Tree: b4044c94ee618ffb72f33cbafb83e4c482a4d509

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
zig fmt: array literal with hint

This regresses the test case of `zig fmt` deleting empty line comments.
Two open questions here:

 * What should the rules be about deleting empty line comments?
   It makes sense usually, but for array initization, empty line
   comments cause a line break, affecting the row/column alignment.
   Perhaps we should therefore respect all empty line comments?
   Or should we special case array initializations?

 * If we decide to special case some kinds of line comments to respect
   them (which is status quo!), how should that be implemented?

```

## Parents

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

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