]> Cypherpunks repositories - gostls13.git/commit
- enabled comment printing by default
authorRobert Griesemer <gri@golang.org>
Tue, 2 Dec 2008 01:20:59 +0000 (17:20 -0800)
committerRobert Griesemer <gri@golang.org>
Tue, 2 Dec 2008 01:20:59 +0000 (17:20 -0800)
commit37bdd3c3f5a6db5816571509c1986e14591dd3e6
treedec8305836054c43d8128c41cb29d4d945bcc49c
parent548609654311809b904f2b5a0926f3b38b45b7b4
- enabled comment printing by default
- changed tab width to 8 chars by default to make test run properly
- excluded 4 files that are not idempotently printed
- fixed a couple of incorrect file position recordings in parser
- fine-tuned layout engine
- white-space formatting reasonable, but not perfect
- no handling of overlong lines
R=r

To use with smaller tabs:           pretty -tabwidth=4 file.go
To use with blanks instead of tabs: pretty -usetabs=0 file.go

OCL=20184
CL=20184
usr/gri/pretty/ast.go
usr/gri/pretty/parser.go
usr/gri/pretty/printer.go
usr/gri/pretty/test.sh