1
0
mirror of https://github.com/golang/go synced 2024-09-25 11:20:13 -06:00

fix build - missing from 35404

TBR=gri
OCL=35411
CL=35411
This commit is contained in:
Russ Cox 2009-10-06 16:06:34 -07:00
parent b1fc650666
commit 13b1d5b1bb

View File

@ -232,6 +232,13 @@ var (
bug_content *regexp.Regexp;
)
func makeRex(s string) *regexp.Regexp {
re, err := regexp.Compile(s);
if err != nil {
panic("MakeRegexp ", s, " ", err.String());
}
return re;
}
// addFile adds the AST for a source file to the docReader.
// Adding the same AST multiple times is a no-op.