1
0
mirror of https://github.com/golang/go synced 2024-11-20 09:54:45 -07:00
go/usr/gri/pretty
Robert Griesemer cb67a8324b - fine-tuning of white space
- by default consider extra newlines in src for better formatting
- additional flags for control (-newlines, -maxnewlines, -optsemicolons)
- don't print ()'s around single anonymous result types

Status: Comparing the output of pretty with the input for larger files
shows mostly whitespace/formatting differences, which is what is desired.

TODO:
- Handling of overlong lines
- some esoteric cases which look funny

R=r
OCL=20293
CL=20293
2008-12-02 16:49:44 -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 The flag and fmt libraries are now available from gccgo by 2008-12-02 12:52:47 -08: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 - fine-tuning of white space 2008-12-02 16:49:44 -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 - fine-tuning of white space 2008-12-02 16:49:44 -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