From 2809b01b2f3fcecc4eeec7c1ee44f65ea0b80abb Mon Sep 17 00:00:00 2001 From: Vallahor Date: Sat, 28 May 2022 14:22:46 -0300 Subject: [PATCH] add: noreturn keyword at end of the fn decl --- src/Autodoc.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Autodoc.zig b/src/Autodoc.zig index 57f976ecfd..0209d1bf76 100644 --- a/src/Autodoc.zig +++ b/src/Autodoc.zig @@ -147,6 +147,9 @@ pub fn generateZirData(self: *Autodoc) !void { .Bool = .{ .name = tmpbuf.toOwnedSlice() }, }, + .noreturn_type => .{ + .NoReturn = .{ .name = tmpbuf.toOwnedSlice() }, + }, .void_type => .{ .Void = .{ .name = tmpbuf.toOwnedSlice() }, }, @@ -525,6 +528,7 @@ const DocData = struct { try sentinel.jsonStringify(options, w); try w.print(",", .{}); } + if (options.whitespace) |ws| try ws.outputIndent(w); try w.print( \\"is_allowzero": {}, \\"is_mutable": {},