authorgravatar for vallahor91@gmail.comVallahor <vallahor91@gmail.com> 2022-05-29 05:22:41-03:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-19 19:10:12-07:00
logd23ccdb8d9e4d3510667164545f9c3be3374d529
tree144a609e1a4f7c0febdab1b1ed09bd9534e35b4b
parent462f751902baefb68ff6f372263ed3b1637690d5

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


2 files changed, 9 insertions(+), 1 deletions(-)

lib/docs/main.js+6
......@@ -1259,6 +1259,12 @@ var zigAnalysis;
12591259 case "int": {
12601260 return "" + expr.int;
12611261 }
1262 case "float": {
1263 return "" + expr.float.toFixed(2);
1264 }
1265 case "undefined": {
1266 return "undefined";
1267 }
12621268 case "string": {
12631269 return "\"" + escapeHtml(expr.string) + "\"";
12641270 }
src/Autodoc.zig+3-1
......@@ -3423,7 +3423,9 @@ fn tryResolveRefPath(
34233423 "failed to match `{s}` in struct",
34243424 .{child_string},
34253425 );
3426 path[i + 1] = (try self.cteTodo("match failure")).expr;
3426 // path[i + 1] = (try self.cteTodo("match failure")).expr;
3427 // this are working, check c.zig
3428 path[i + 1] = (try self.cteTodo(child_string)).expr;
34273429 continue :outer;
34283430 },
34293431 },