| commit | 17ff23f7c8d6a3310e1fa59fced2fc584b68ac7c | [log] [tgz] |
|---|---|---|
| author | griesemer <gri@golang.org> | Mon Nov 06 15:01:33 2017 -0800 |
| committer | Robert Griesemer <gri@golang.org> | Mon Nov 06 23:17:24 2017 +0000 |
| tree | 0b4cf985ec1b791c3e11db7ce85a54de56d094e7 | |
| parent | be943df58860e7dec008ebb8d68428d54e311b94 [diff] |
cmd/compile/internal/syntax: better syntax errors for typos in if/switch/for headers Be more pessimistic when parsing if/switch/for headers for better error messages when things go wrong. Fixes #22581. Change-Id: Ibb99925291ff53f35021bc0a59a4c9a7f695a194 Reviewed-on: https://go-review.googlesource.com/76290 Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of hundreds of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project does not use GitHub pull requests, and that we use the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.