Reconnected rule IDs

This commit is contained in:
Devine Lu Linvega 2024-04-08 15:19:37 -07:00
parent ad2dbb2a1f
commit 45ebcb6a23
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ add_rule(char *p)
{
char c;
Rule *r = rules_++;
p += 2;
r->id = rules_ - rules - 1, p += 2;
while((c = *p) && c <= ' ') p++;
r->a = parse_rule(p), p = walk(p);
while((c = *p) && c <= ' ') p++;