diff options
author | Russ Cox <rsc@golang.org> | 2009-03-05 13:35:45 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-03-05 13:35:45 -0800 |
commit | 87b2d90b9c3472648bd82625e2450c8fdfe60977 (patch) | |
tree | 82a6e05b8511edf20b3fd5e8002c976d5f9a5b19 /src/lib/regexp/regexp.go | |
parent | ef6e0cefc5a2a399f216f4bc2d7998f27a607044 (diff) | |
download | golang-87b2d90b9c3472648bd82625e2450c8fdfe60977.tar.gz |
misc doc
R=r
DELTA=50 (28 added, 0 deleted, 22 changed)
OCL=25763
CL=25770
Diffstat (limited to 'src/lib/regexp/regexp.go')
-rw-r--r-- | src/lib/regexp/regexp.go | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/lib/regexp/regexp.go b/src/lib/regexp/regexp.go index 86ef07c2e..ec55444f3 100644 --- a/src/lib/regexp/regexp.go +++ b/src/lib/regexp/regexp.go @@ -31,16 +31,18 @@ import ( var debug = false; // Error codes returned by failures to parse an expression. -var ErrInternal = os.NewError("internal error"); -var ErrUnmatchedLpar = os.NewError("unmatched '('"); -var ErrUnmatchedRpar = os.NewError("unmatched ')'"); -var ErrUnmatchedLbkt = os.NewError("unmatched '['"); -var ErrUnmatchedRbkt = os.NewError("unmatched ']'"); -var ErrBadRange = os.NewError("bad range in character class"); -var ErrExtraneousBackslash = os.NewError("extraneous backslash"); -var ErrBadClosure = os.NewError("repeated closure (**, ++, etc.)"); -var ErrBareClosure = os.NewError("closure applies to nothing"); -var ErrBadBackslash = os.NewError("illegal backslash escape"); +var ( + ErrInternal = os.NewError("internal error"); + ErrUnmatchedLpar = os.NewError("unmatched '('"); + ErrUnmatchedRpar = os.NewError("unmatched ')'"); + ErrUnmatchedLbkt = os.NewError("unmatched '['"); + ErrUnmatchedRbkt = os.NewError("unmatched ']'"); + ErrBadRange = os.NewError("bad range in character class"); + ErrExtraneousBackslash = os.NewError("extraneous backslash"); + ErrBadClosure = os.NewError("repeated closure (**, ++, etc.)"); + ErrBareClosure = os.NewError("closure applies to nothing"); + ErrBadBackslash = os.NewError("illegal backslash escape"); +) // An instruction executed by the NFA type instr interface { |