]> Cypherpunks repositories - gostls13.git/commit
go/parser: report illegal label declarations at ':' rather than guessing the start
authorRobert Griesemer <gri@golang.org>
Fri, 22 Jul 2011 16:55:37 +0000 (09:55 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 22 Jul 2011 16:55:37 +0000 (09:55 -0700)
commitfa497796f5cbbbf962876422a133f3bef97f53df
treec4daedc246722087098e5ef93b593e9fcb2c291c
parent3d552700ce71fe9671c383bd2718ba9d9b5c40c1
go/parser: report illegal label declarations at ':' rather than guessing the start

Also:
- Add parser.SpuriousError flag. If set, the parser reports all (including
  spurious) errors rather then at most one error per line.
- Add -e flag to gofmt and gotype: If set, gofmt and gotype report all
  (including spurious) errors rather than at most one error per line.
- Updated the respective documentation.

Fixes #2088.

R=rsc
CC=golang-dev
https://golang.org/cl/4803047
src/cmd/gofmt/doc.go
src/cmd/gofmt/gofmt.go
src/cmd/gotype/doc.go
src/cmd/gotype/gotype.go
src/pkg/go/parser/interface.go
src/pkg/go/parser/parser.go