| ... | @@ -189,8 +189,9 @@ inline fn do(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comp | ... | @@ -189,8 +189,9 @@ inline fn do(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comp |
| 189 | var args: std.meta.ArgsTuple(@TypeOf(func)) = undefined; | 189 | var args: std.meta.ArgsTuple(@TypeOf(func)) = undefined; |
| 190 | args.@"0" = alloc; | 190 | args.@"0" = alloc; |
| 191 | args.@"1" = list.writer(); | 191 | args.@"1" = list.writer(); |
| | 192 | args[2] = opts; |
| 192 | inline for (v.args, 0..) |arg, i| { | 193 | inline for (v.args, 0..) |arg, i| { |
| 193 | const field_name = comptime std.fmt.comptimePrint("{d}", .{i + 2}); | 194 | const field_name = comptime std.fmt.comptimePrint("{d}", .{i + 3}); |
| 194 | @field(args, field_name) = if (comptime std.mem.eql(u8, arg[0], "this")) search(arg[1..], data) else search(arg, ctx); | 195 | @field(args, field_name) = if (comptime std.mem.eql(u8, arg[0], "this")) search(arg[1..], data) else search(arg, ctx); |
| 195 | } | 196 | } |
| 196 | const repvalue = astgen.Value{ .replacement = .{ .arms = &.{"this"}, .raw = v.raw } }; | 197 | const repvalue = astgen.Value{ .replacement = .{ .arms = &.{"this"}, .raw = v.raw } }; |