diff options
author | Robert Griesemer <gri@golang.org> | 2009-12-10 19:03:28 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-12-10 19:03:28 -0800 |
commit | 030ace0bedeab7d93ff5e8ffd25ebba39937049e (patch) | |
tree | ce459412ba37ac84bb2054ae03d2e92fb8b97446 /src/cmd/gofmt/doc.go | |
parent | 4976fc276b18d0340c1e6f916f9711fd81504700 (diff) | |
download | golang-030ace0bedeab7d93ff5e8ffd25ebba39937049e.tar.gz |
New flags for gofmt:
- oldparser parse old syntax (required semicolons)
- oldprinter print old syntax (required semicolons)
By default, these flags are enabled for now.
Setting -oldparser=false has no effect until go/parser is changed
to accept the new syntax.
Enabled exp/parser in Makefile; update dependent exp/eval.
R=rsc
http://codereview.appspot.com/174051
Diffstat (limited to 'src/cmd/gofmt/doc.go')
-rw-r--r-- | src/cmd/gofmt/doc.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cmd/gofmt/doc.go b/src/cmd/gofmt/doc.go index 4b4adba03..e9b1d6c47 100644 --- a/src/cmd/gofmt/doc.go +++ b/src/cmd/gofmt/doc.go @@ -29,6 +29,14 @@ The flags are: -tabwidth=8 tab width in spaces. +Flags to aid the transition to the new semicolon-free syntax (these flags will be +removed eventually): + + -oldparser=true + parse old syntax (required semicolons). + -oldprinter=true + print old syntax (required semicolons). + Debugging flags: -trace |