]> Cypherpunks repositories - gostls13.git/commit
better gofmt formatting:
authorRobert Griesemer <gri@golang.org>
Fri, 11 Sep 2009 00:27:06 +0000 (17:27 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 11 Sep 2009 00:27:06 +0000 (17:27 -0700)
commit58c5e62f8b46b412a93308db87ad465be474c30f
tree087947da57b4a7763ed66222ee7f9eae4f1bdd87
parentfc90fb8c814bcaaa6bb107da9f3e4430da3b48da
better gofmt formatting:
- first cut a better line breaks in expr lists
- trailing commas and semis printed where we tend to write them
- fixed a couple of minor spacing issues (interface{}, chan<-, map[x]y, x: y)
- removed some formatting flags from gofmt: no need to change default
- removed option to reverse declaration order when printing
- excluded files from test that cause trouble with idempotency test for now

R=rsc
DELTA=497  (364 added, 83 deleted, 50 changed)
OCL=34539
CL=34544
src/cmd/gofmt/gofmt.go
src/cmd/gofmt/test.sh
src/pkg/go/printer/printer.go
src/pkg/go/printer/printer_test.go
src/pkg/go/printer/testdata/golden1.go
src/pkg/go/printer/testdata/linebreaks.go [new file with mode: 0644]
src/pkg/go/printer/testdata/linebreaks.golden [new file with mode: 0644]