aboutsummaryrefslogtreecommitdiff
path: root/examples/zon-examples/invalid.zon
diff options
context:
space:
mode:
authorDavid Czihak <git@dcz.at>2026-05-09 13:01:50 +0200
committerDavid Czihak <git@dcz.at>2026-05-09 13:01:50 +0200
commit4b6f66fd512c254b5a82220dc77411fe391dd258 (patch)
tree7d77d7966e9ad2e296986ea8cfeb607088028195 /examples/zon-examples/invalid.zon
parent64e9c56fc665972fdde5234c4fb2f2a882e237dc (diff)
Chore: Rework examples for thorough extension testing
Diffstat (limited to 'examples/zon-examples/invalid.zon')
-rw-r--r--examples/zon-examples/invalid.zon12
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,
+}