summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-10-06 16:06:34 -0700
committerRuss Cox <rsc@golang.org>2009-10-06 16:06:34 -0700
commit585223f2d54eef62afe0c6cab59d0c6c0f56c0f0 (patch)
tree89af1b9f2d7b83a8d811946ac4619d85daa3bd5a
parenta83da7e32e9a9fac50576e9225e5f6cdb9b3ca71 (diff)
downloadgolang-585223f2d54eef62afe0c6cab59d0c6c0f56c0f0.tar.gz
fix build - missing from 35404
TBR=gri OCL=35411 CL=35411
-rw-r--r--src/pkg/go/doc/doc.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pkg/go/doc/doc.go b/src/pkg/go/doc/doc.go
index 9357830b5..9b6b34d6b 100644
--- a/src/pkg/go/doc/doc.go
+++ b/src/pkg/go/doc/doc.go
@@ -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.