0
1
mirror of https://github.com/golang/go synced 2024-12-11 15:21:00 +00:00
Robert Griesemer 2eac154b1c cmd/compile: better error message when offending/missing token is a keyword
Prefix keywords (type, default, case, etc.) with "keyword" in error
messages to make them less ambiguous.

Fixes #68589.

Change-Id: I1eb92d1382f621b934167b3a4c335045da26be9f
Reviewed-on: https://go-review.googlesource.com/c/go/+/623819
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Tim King <taking@google.com>
2024-11-14 02:14:13 +00:00
..
chan1.go
chan.go
composite.go
ddd.go
else.go
if.go
import.go
initvar.go
semi1.go
semi2.go
semi3.go
semi4.go
semi5.go
semi6.go
semi7.go cmd/compile: better error message when offending/missing token is a keyword 2024-11-14 02:14:13 +00:00
topexpr.go
typesw.go
vareq1.go
vareq.go