1
0
mirror of https://github.com/golang/go synced 2024-11-23 00:40:08 -07:00
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
..
chan1.go cmd/compile/internal/gc: enable new parser by default 2016-10-25 22:28:40 +00:00
chan.go
composite.go
ddd.go
else.go
forvar.go
if.go
import.go
interface.go
semi1.go
semi2.go
semi3.go
semi4.go cmd/compile/internal/gc: enable new parser by default 2016-10-25 22:28:40 +00:00
semi5.go
semi6.go cmd/compile/internal/syntax: differentiate between ';' and '\n' in syntax errors 2017-02-09 01:45:17 +00:00
semi7.go
topexpr.go
typesw.go
vareq1.go
vareq.go