]> Cypherpunks repositories - gostls13.git/commit
Partial work-around for gofmt bug.
authorRobert Griesemer <gri@golang.org>
Mon, 11 Jan 2010 18:38:06 +0000 (10:38 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 11 Jan 2010 18:38:06 +0000 (10:38 -0800)
commit93d81fb7476fb3b6aa428be7f55fa59ad1356ae0
tree9ac0c100e8d76d51408d4561b0cdf98e120941f1
parent5336cd8f915b6759581eea90234afd957721e54d
Partial work-around for gofmt bug.

Addresses some cases and respects position of
closing parenthesis; but doesn't work yet in
all cases. Heuristic; will need to be replaced
by a real solution eventually. Does not cause
existing code to be reformatted.

R=r
CC=golang-dev, rsc
https://golang.org/cl/186043
src/pkg/go/printer/nodes.go
src/pkg/go/printer/printer.go
src/pkg/go/printer/testdata/expressions.golden
src/pkg/go/printer/testdata/expressions.input
src/pkg/go/printer/testdata/expressions.raw