Do not continue after lambda rewrite

This commit is contained in:
Devine Lu Linvega 2024-04-22 20:13:19 -07:00
parent ba48cfffa6
commit 701d2c43a5
1 changed files with 4 additions and 4 deletions

View File

@ -183,10 +183,10 @@ rewrite(void)
r->a = dict_, s = parse_frag(s + 2); r->a = dict_, s = parse_frag(s + 2);
r->b = dict_, parse_frag(s), s = cap; r->b = dict_, parse_frag(s), s = cap;
while(*s == ' ') s++; while(*s == ' ') s++;
r = rules; return run_rule(r, s);
} else }
r = rules + 1;
for(; r < rules_; r++) for(r = rules + 1; r < rules_; r++)
if(run_rule(r, s)) return 1; if(run_rule(r, s)) return 1;
} }
*dst_++ = last = c; *dst_++ = last = c;