# zig fmt: preserve comments in front of test blocks · gitcafe/zig

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

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

Visibility: public

Requested revision: 6e57243a79b08f37b80122f0eb24d073d6e2e95c

Requested commit: 6e57243a79b08f37b80122f0eb24d073d6e2e95c

Commit: 6e57243a79b08f37b80122f0eb24d073d6e2e95c

Tree: c1b95d61998034b50b558c94f81141eaae8409e0

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
zig fmt: preserve comments in front of test blocks

 * refactor std.zig.parser
 * fix compiler crashing for some compile errors
 * take advantage of @field in std.zig.ast
 * move ast.NodeFoo to ast.Node.Foo
 * comment preservation is more explicit

See #911

```

## Parents

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

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