mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
grep: import $ fix from plan 9
R=rsc http://codereview.appspot.com/4673053
This commit is contained in:
parent
29fba8562c
commit
ce5fdeb446
1 changed files with 8 additions and 2 deletions
|
@ -114,9 +114,15 @@ loop:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Tend:
|
case Tend:
|
||||||
if(c == '\n')
|
if(c == '\n') {
|
||||||
|
if(r->next == 0) {
|
||||||
matched = 1;
|
matched = 1;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
r = r->next;
|
||||||
|
goto loop;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case Tclass:
|
case Tclass:
|
||||||
if(c >= r->u.x.lo && c <= r->u.x.hi)
|
if(c >= r->u.x.lo && c <= r->u.x.hi)
|
||||||
|
|
Loading…
Reference in a new issue