diff options
| author | Robert Griesemer <gri@golang.org> | 2009-07-09 16:38:17 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2009-07-09 16:38:17 -0700 |
| commit | 38e7fddc21e2c1c5fbf4f332401b999800a8b5e5 (patch) | |
| tree | fd865f0c1add970888e0aa3b5c650605cc14171b /lib | |
| parent | ec23467e65260bbbcb0faaa4dd053cca9002ace7 (diff) | |
| download | go-38e7fddc21e2c1c5fbf4f332401b999800a8b5e5.tar.xz | |
Show BUG comments in godoc:
ast.go:
- rename Comments -> CommentGroup (less confusion)
- change all comments/docs to be *CommentGroup
filter.go:
- do not remove unassociated comments from program as part
of export filtering (they are needed by doc.go for BUG comments)
scanner.go:
- exclude '\n' from //-style comments
parser.go:
- rewrote collection of comments: now all collected comments
are *ast.CommentGroups
- clarified distinction between leading and trailing comments
- fixed a bug in comment collection (parseGenDecl);
corresponding test case is in printer/testdata
- extra documentation
doc.go:
- collect BUG comments
- corresponding fix for parser bug in comment collection
comment.go:
- simplified regex
printer.go:
- adjust comment printing to new representation
printer_test.go, testdata/*:
- enable printing of doc comments
- extended tests
package.html, package.txt:
- added Bugs section
gofmt:
- enable printing of doc comments
R=rsc
DELTA=339 (126 added, 38 deleted, 175 changed)
OCL=31403
CL=31416
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/godoc/package.html | 7 | ||||
| -rw-r--r-- | lib/godoc/package.txt | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/godoc/package.html b/lib/godoc/package.html index 8d430743c4..0f1b0457d8 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -51,4 +51,11 @@ {.end} {.end} {.end} + {.section Bugs} + <hr /> + <h2>Bugs</h2> + {.repeated section @} + {@|html-comment} + {.end} + {.end} {.end} diff --git a/lib/godoc/package.txt b/lib/godoc/package.txt index 542c2c460e..0dde78c6cf 100644 --- a/lib/godoc/package.txt +++ b/lib/godoc/package.txt @@ -58,4 +58,12 @@ TYPES {.end} {.end} {.end} +{.section Bugs} + +BUGS + +{.repeated section @} +{@} +{.end} +{.end} {.end} |
