Fixed issue with catching matches without spaces

This commit is contained in:
Devine Lu Linvega 2024-04-26 09:02:03 -07:00
parent f546e2e016
commit 13359a79cd
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ rewrite(void)
char c, last = 0, *cap, *s = src_; char c, last = 0, *cap, *s = src_;
while(*s == ' ') s++; while(*s == ' ') s++;
while((c = *s)) { while((c = *s)) {
if(spacer(last)) { if(c == '(' || spacer(last)) {
Rule *r = NULL; Rule *r = NULL;
/* phase: rule */ /* phase: rule */
if(c == '<' && s[1] == '>') { if(c == '<' && s[1] == '>') {