go/test/syntax
Robert Griesemer 9799622f09 cmd/compile/internal/syntax: differentiate between ';' and '\n' in syntax errors
Towards better syntax error messages: With this change, the parser knows whether
a semicolon was an actual ';' in the source, or whether it was an automatically
inserted semicolon as result of a '\n' or EOF. Using this information in error
messages makes them more understandable.

For #17328.

Change-Id: I8cd9accee8681b62569d0ecef922d38682b401eb
Reviewed-on: https://go-review.googlesource.com/36636
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
2017-02-09 01:45:17 +00:00
..
chan.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
chan1.go cmd/compile/internal/gc: enable new parser by default 2016-10-25 22:28:40 +00:00
composite.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
ddd.go
else.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
forvar.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
interface.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
semi1.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
semi2.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
semi3.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
semi4.go cmd/compile/internal/gc: enable new parser by default 2016-10-25 22:28:40 +00:00
semi5.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
semi6.go cmd/compile/internal/syntax: differentiate between ';' and '\n' in syntax errors 2017-02-09 01:45:17 +00:00
semi7.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
topexpr.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
typesw.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +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