Commit d23ccdb8d9

Vallahor <vallahor91@gmail.com>
2022-05-29 10:22:41
fix: "match failure" in c.zig file @check other files and handling floats and undefined values in js
1 parent 462f751
Changed files (2)
lib
docs
src
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) + "\"";
           }
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;
                 },
             },