$ go version
go version devel +8e0be05ec7 Sun Jan 19 14:04:09 2020 +0000 linux/amd64
$ go list -m golang.org/x/tools
$ go list -m golang.org/x/tools/gopls
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
Yes, this is is coming from go/parser. A minimal repro can be found here: https://play.golang.org/p/ca24wvyr5Wl. This seems like an instance where go/parser's errors should be updated to match the compiler's. I'll change the issue title to reflect this.
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
This label describes issues relating to any tools in the x/tools repository.
Issues related to the Go language server, gopls.
Mar 12, 2020