zig

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

commit d23ccdb8d9e4d3510667164545f9c3be3374d529 (tree)
parent 462f751902baefb68ff6f372263ed3b1637690d5
Author: Vallahor <vallahor91@gmail.com>
Date:   Sun, 29 May 2022 05:22:41 -0300

fix: "match failure" in c.zig file @check other files and handling floats and undefined values in js

Diffstat:
Mlib/docs/main.js | 6++++++
Msrc/Autodoc.zig | 4+++-
2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/lib/docs/main.js b/lib/docs/main.js @@ -1259,6 +1259,12 @@ var zigAnalysis; case "int": { return "" + expr.int; } + case "float": { + return "" + expr.float.toFixed(2); + } + case "undefined": { + return "undefined"; + } case "string": { return "\"" + escapeHtml(expr.string) + "\""; } diff --git a/src/Autodoc.zig b/src/Autodoc.zig @@ -3423,7 +3423,9 @@ fn tryResolveRefPath( "failed to match `{s}` in struct", .{child_string}, ); - path[i + 1] = (try self.cteTodo("match failure")).expr; + // path[i + 1] = (try self.cteTodo("match failure")).expr; + // this are working, check c.zig + path[i + 1] = (try self.cteTodo(child_string)).expr; continue :outer; }, },