1
0
mirror of https://github.com/golang/go synced 2024-11-20 10:54:49 -07:00
go/usr/gri/pretty
Robert Griesemer 37bdd3c3f5 - 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
2008-12-01 17:20:59 -08:00
..
ast.go - enabled comment printing by default 2008-12-01 17:20:59 -08:00
compilation.go - snapshot of state before trying yet another, hopefully better working 2008-11-26 13:23:26 -08:00
Makefile - move tabwriter into library 2008-11-20 17:39:41 -08:00
Makefile.iant - added simple facility to print Makefile dependency rules given a Go source file 2008-10-26 21:32:30 -07:00
parser.go - enabled comment printing by default 2008-12-01 17:20:59 -08:00
platform.go - added simple facility to print Makefile dependency rules given a Go source file 2008-10-26 21:32:30 -07:00
pretty.go - snapshot of state before trying yet another, hopefully better working 2008-11-26 13:23:26 -08:00
printer.go - enabled comment printing by default 2008-12-01 17:20:59 -08:00
scanner.go - snapshot of state before trying yet another, hopefully better working 2008-11-26 13:23:26 -08:00
selftest0.go - handle field tags in pretty printer 2008-10-31 14:27:34 -07:00
selftest1.go - handle field tags in pretty printer 2008-10-31 14:27:34 -07:00
selftest2.go - collect addition source position information in parser 2008-11-26 17:07:45 -08:00
test.sh - enabled comment printing by default 2008-12-01 17:20:59 -08:00
untab.go - implemented arbitrary padding char for tabwriter 2008-11-21 09:35:49 -08:00
utils.go First cut at a Go pretty printer: 2008-09-18 16:58:37 -07:00