authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-13 23:15:36 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-13 23:15:36 -07:00
log1f4b7a6d4cb994a8b11185485350d3cbad9b70af
treecd9b8d5b89a41ea612f41c6181ff788f1205c809
parent3bc98c9e10d85bee081771558bcdf71fe9e3feed

allow `this` in 2nd arg of `#ifequal`


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

src/lib.zig+1-1
......@@ -110,7 +110,7 @@ fn do(writer: anytype, comptime value: astgen.Value, data: anytype, ctx: anytype
110110 },
111111 .ifequal => {
112112 comptime assertEqual(v.args.len, 2);
113 const y = search(v.args[1], data);
113 const y = if (comptime std.mem.eql(u8, v.args[1][0], "this")) search(v.args[1][1..], data) else search(v.args[1], ctx);
114114 if (x == y) try do(writer, body, data, ctx, indent, flag1);
115115 },
116116 .ifnotequal => {