| ... | @@ -9,7 +9,6 @@ | ... | @@ -9,7 +9,6 @@ |
| 9 | | 9 | |
| 10 | const std = @import("std"); | 10 | const std = @import("std"); |
| 11 | const string = []const u8; | 11 | const string = []const u8; |
| 12 | const range = @import("range").range; | | |
| 13 | const htmlentities = @import("htmlentities"); | 12 | const htmlentities = @import("htmlentities"); |
| 14 | const root = @import("root"); | 13 | const root = @import("root"); |
| 15 | | 14 | |
| ... | @@ -47,7 +46,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V | ... | @@ -47,7 +46,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V |
| 47 | } | 46 | } |
| 48 | } else false; | 47 | } else false; |
| 49 | | 48 | |
| 50 | if (opts.flag1) for (range(opts.indent)) |_| try writer.writeAll(" "); | 49 | if (opts.flag1) for (0..opts.indent) |_| try writer.writeAll(" "); |
| 51 | try writer.writeAll("<"); | 50 | try writer.writeAll("<"); |
| 52 | try writer.writeAll(v.name); | 51 | try writer.writeAll(v.name); |
| 53 | | 52 | |
| ... | @@ -79,7 +78,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V | ... | @@ -79,7 +78,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V |
| 79 | .flag1 = !hastext, | 78 | .flag1 = !hastext, |
| 80 | }); | 79 | }); |
| 81 | } | 80 | } |
| 82 | if (!hastext) for (range(opts.indent)) |_| try writer.writeAll(" "); | 81 | if (!hastext) for (0..opts.indent) |_| try writer.writeAll(" "); |
| 83 | try writer.print("</{s}>", .{v.name}); | 82 | try writer.print("</{s}>", .{v.name}); |
| 84 | if (opts.flag1) try writer.writeAll("\n"); | 83 | if (opts.flag1) try writer.writeAll("\n"); |
| 85 | } | 84 | } |