zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 9cd9a390ae1e5940a81bbe7e0fdf51ecfcb93d3d (tree)
parent e39d1ae78ff3829f96db5952ecdcd17dbd533fe8
Author: Reece Van Atta <reece@thrasker.com>
Date:   Mon, 21 Mar 2022 13:41:59 -0400

autodoc: add typedef to zigAnalysis file, just in case

Diffstat:
Msrc/Autodoc.zig | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/Autodoc.zig b/src/Autodoc.zig @@ -210,7 +210,10 @@ pub fn generateZirData(self: *Autodoc) !void { const data_js_f = output_dir.createFile("data.js", .{}) catch unreachable; defer data_js_f.close(); const out = data_js_f.writer(); - out.print("zigAnalysis=", .{}) catch unreachable; + out.print( + \\ /** @type {{DocData}} */ + \\ var zigAnalysis= + , .{}) catch unreachable; std.json.stringify( data, .{