std.zig attempt to continue parsing on error

This commit is contained in:
Vexu
2020-05-12 22:37:39 +03:00
parent fa57463bb9
commit df22c7dfef
2 changed files with 86 additions and 23 deletions

View File

@@ -1,3 +1,13 @@
test "zig fmt: fault tolerant parsing" {
try testError(
\\test "" {inline}
\\test "" {inline}
, &[_]Error{
.ExpectedInlinable,
.ExpectedInlinable,
});
}
test "zig fmt: top-level fields" {
try testCanonical(
\\a: did_you_know,