diff options
Diffstat (limited to 'examples/zon-examples/invalid.zon')
| -rw-r--r-- | examples/zon-examples/invalid.zon | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/zon-examples/invalid.zon b/examples/zon-examples/invalid.zon new file mode 100644 index 0000000..e588d73 --- /dev/null +++ b/examples/zon-examples/invalid.zon @@ -0,0 +1,12 @@ +// INVALID ZON — used to test error reporting on .zon files. +// +// ZON struct fields must begin with a dot followed by an identifier. +// The bare key `name` on line 8 (no leading dot) is invalid syntax. +// Any tool that parses this file (ZLS, zig build, zig fmt) should +// report an error around that line, exercising the issue matcher on +// non-.zig source files. +.{ + name = "missing-dot", + .value = 1, + .ok = true, +} |
