]> Cypherpunks repositories - gostls13.git/commit
improved comment formatting:
authorRobert Griesemer <gri@golang.org>
Fri, 30 Oct 2009 20:17:14 +0000 (13:17 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 30 Oct 2009 20:17:14 +0000 (13:17 -0700)
commit1e984cb913ac8f9a16a5df383ab9287fe0660e5c
treeeb1870e54e2daf16e7c34f81174d6c27de7cad9a
parent09f4261841320f38a0f2f4ee7515a9f03dd4fb68
improved comment formatting:
- print comments line by line, strip common prefix but do not
  modify comment contents otherwise
- align comments with subsequent keyword if indicated (e.g. case labels)
- terminate "column section" after multi-line expressions for better alignment

R=rsc
http://go/go-review/1017002
src/pkg/go/printer/printer.go
src/pkg/go/printer/testdata/comments.go
src/pkg/go/printer/testdata/comments.golden
src/pkg/go/printer/testdata/expressions.go
src/pkg/go/printer/testdata/expressions.golden
src/pkg/go/printer/testdata/expressions.raw
src/pkg/go/printer/testdata/statements.go
src/pkg/go/printer/testdata/statements.golden