authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-07-05 22:26:19 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-07-05 22:26:19 -07:00
log8c6cafd94a5c0978ed534edc14d8847960941aa6
tree7094c6c82084f3f7686e70ba3279e5c416d4dafd
parent168f3420e9b12e7b48af9e859f6c7c2df23eb81d

fix miscompilation in argument order when mixing strings and replacements


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

src/astgen.zig+4
......@@ -207,6 +207,10 @@ const Parser = struct {
207207 var temp: []const string = &.{};
208208 while (!self.tryEatSymbol("}")) {
209209 if (self.nextIs(.string)) {
210 if (temp.len > 0) {
211 ret = ret ++ &[_]Arg{.{ .lookup = temp }};
212 temp = &.{};
213 }
210214 ret = ret ++ &[_]Arg{.{ .plain = self.eat(.string) }};
211215 continue;
212216 }