diff options
| author | Robert Griesemer <gri@golang.org> | 2018-01-16 16:17:54 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2018-02-12 21:43:41 +0000 |
| commit | 7ac393a3f208ab72263a245b80e22ad62abae565 (patch) | |
| tree | 851cf249f826d564191229ad9c6f60ba8e5e9582 /src/cmd/compile/internal/syntax/parser_test.go | |
| parent | 5408d799501432aa247307604df33c622d6a73d3 (diff) | |
| download | go-7ac393a3f208ab72263a245b80e22ad62abae565.tar.xz | |
go/parser: improved error message for unexpected literals
R=go1.11
This is a follow up for #11377 which reported that an error like
/tmp/xx.go:9:6: expected '(', found 'IDENT' F1
shouldn't print 'IDENT', as it's just an internal detail.
The relevant change wasn't made in the original fix, so here it is.
For #11377.
Change-Id: Ib76957d86b88e3e63646fbe4abf03a3b9d045139
Reviewed-on: https://go-review.googlesource.com/87900
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/syntax/parser_test.go')
0 files changed, 0 insertions, 0 deletions
