]> Cypherpunks repositories - gostls13.git/commitdiff
fix a couple of inconsequential glitches in regexp code.
authorRob Pike <r@golang.org>
Wed, 22 Oct 2008 00:18:34 +0000 (17:18 -0700)
committerRob Pike <r@golang.org>
Wed, 22 Oct 2008 00:18:34 +0000 (17:18 -0700)
R=rsc
DELTA=2  (0 added, 1 deleted, 1 changed)
OCL=17589
CL=17595

src/lib/regexp/regexp.go

index 7d366508a5ac031272cdb959eea8dc021f485f6d..bde707700a76232a89312959eaccd0a58cf177b4 100644 (file)
@@ -14,7 +14,6 @@ import (
 export var debug = false;
 
 
-export var ErrUnimplemented = os.NewError("unimplemented");
 export var ErrInternal = os.NewError("internal error");
 export var ErrUnmatchedLpar = os.NewError("unmatched '('");
 export var ErrUnmatchedRpar = os.NewError("unmatched ')'");
@@ -397,7 +396,7 @@ func (p *Parser) Term() (start, end Inst) {
        switch c := p.c(); c {
        case '|', EOF:
                return NULL, NULL;
-       case '*', '+', '|':
+       case '*', '+':
                p.re.Error(ErrBareClosure);
        case ')':
                if p.nlpar == 0 {