golang/test/syntax
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
..
chan.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
chan1.go test: match gofrontend error messages 2020-11-28 02:31:54 +00:00
composite.go cmd/compile/internal/syntax: better errors for syntax errors in lists 2022-03-31 00:26:58 +00:00
ddd.go go/parser: adjustments to error messages 2022-09-01 22:37:04 +00:00
else.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
if.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
import.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
initvar.go cmd/compile/internal/syntax: generalize error about var decls in init clauses 2017-02-13 23:15:32 +00:00
semi1.go cmd/compile/internal/parser: improved syntax error for incorrect if/for/switch header 2017-02-09 03:54:47 +00:00
semi2.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
semi3.go cmd/compile/internal/parser: improved syntax error for incorrect if/for/switch header 2017-02-09 03:54:47 +00:00
semi4.go go/parser: adjustments to error messages 2022-09-01 22:37:04 +00:00
semi5.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
semi6.go test: match gofrontend error messages 2020-12-02 02:56:41 +00:00
semi7.go cmd/compile: better error message when offending/missing token is a keyword 2024-11-14 02:14:13 +00:00
topexpr.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
typesw.go cmd/compile/internal/syntax: better error when an assignment is used in value context 2020-02-21 22:57:52 +00:00
vareq.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
vareq1.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00