Do not pick up on varibles when part of words

This commit is contained in:
Devine Lu Linvega 2024-04-12 09:29:03 -07:00
parent 931d43ea9c
commit 9c9814d6f7
1 changed files with 2 additions and 2 deletions

View File

@ -138,10 +138,10 @@ write_rule(Rule *r, char last, char *res)
char cc, *b = r->b; char cc, *b = r->b;
if(!*b && last == ' ') outp_--; if(!*b && last == ' ') outp_--;
while((cc = *b++)) while((cc = *b++))
if(cc == '?') if(spacer(last) && cc == '?')
put_reg(*b++); put_reg(*b++);
else else
*outp_++ = cc; *outp_++ = cc, last = cc;
return commit_rule(r, res, 0); return commit_rule(r, res, 0);
} }