]> Cypherpunks repositories - gostls13.git/commit
go/doc/comment: add low-level parsing helpers
authorRuss Cox <rsc@golang.org>
Sun, 3 Apr 2022 12:00:55 +0000 (08:00 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 11 Apr 2022 16:31:36 +0000 (16:31 +0000)
commit7575811c2b7c4a4a06a1e4b93c2473dffbb8bdcf
tree64f85175bc1c5c67178e9ef73ad53dd6affb1bee
parent494b79f39ab8e7b6f096b6c6088bd84bb8592dc4
go/doc/comment: add low-level parsing helpers

[This CL is part of a sequence implementing the proposal #51082.
The design doc is at https://go.dev/s/godocfmt-design.]

Implement helpers to recognize old-style headings,
plain text (not marked up) URLs, and Go identifiers.

For #51082.

Change-Id: Ibabce72ef3ffd79a9d33366091f8c76ef27d0182
Reviewed-on: https://go-review.googlesource.com/c/go/+/397277
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/go/doc/comment/old_test.go [new file with mode: 0644]
src/go/doc/comment/parse.go