Change information
Commit message:
gopls: improve doc link matching to support links followed by a colon
The existing `docLinkRegex` fails to handle cases like `[Demo]: demo`,
which are valid. This change introduces a new helper function,
`findDocLinkIndices`, to correctly locate doc link indices. In the mean
time, changing the `docLinkRegex` to find out all the matched positions.
Fixes golang/go#75925
Change-Id: I359990d9c71c73bad5869c280af74dd301f96338
Files:
- M gopls/internal/golang/comment.go
- M gopls/internal/golang/semtok.go
- A gopls/internal/test/marker/testdata/token/issue75925.txt
Change size: M
Delta: 3 files changed, 60 insertions(+), 4 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Alan Donovan, +2 by Madeline Kalil
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI