✓
Passing This code compiles and runs correctly.
Code
// Test 604: Vertical Annotation Syntax
// Tests that vertical -bullet format produces same AST as inline |delimiter
const std = @import("std");
// Vertical with - bullets (markdown-strict: space after dash required)
~[
- comptime
- runtime
- fuseable
] event vertical-bullets {}
// Vertical with parameterized annotations
~[
- optimize(level: 3)
- inline(threshold: 500)
- gpu(target: "metal", precision: "half")
] event vertical-params {}
// Mix of simple and complex
~[
- comptime
- runtime
- optimize(level: 2)
- profile(sample_rate: 1000)
] event vertical-mixed {}
// Should be equivalent to inline
~[comptime|runtime|fuseable] event inline-equiv {}
~proc vertical-bullets|zig { return .{ .done = .{} }; }
~proc vertical-params|zig { return .{ .done = .{} }; }
~proc vertical-mixed|zig { return .{ .done = .{} }; }
~proc inline-equiv|zig { return .{ .done = .{} }; }