mirror of https://github.com/golang/go.git
Block comments are a single comment that stretches across multiple lines. The folding range code made assumptions that each comment was a single line. This change fixes the folding range logic to check for multiline comments and adjust the folding range to start at the end of the first line. Fixes golang/go#46253 Fixes golang/vscode-go#1511 Change-Id: I902f6cda7547cb1f8b4cd447152c3cf29a691d3b Reviewed-on: https://go-review.googlesource.com/c/tools/+/325071 Trust: Suzy Mueller <suzmue@golang.org> Run-TryBot: Suzy Mueller <suzmue@golang.org> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
|---|---|---|
| .. | ||
| a.go | ||
| a.go.golden | ||
| bad.go.golden | ||
| bad.go.in | ||