]> Cypherpunks repositories - gostls13.git/commit
- Parse expressions as opposed to statements for gofmt rewrite patterns.
authorRobert Griesemer <gri@golang.org>
Thu, 17 Dec 2009 00:53:56 +0000 (16:53 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 17 Dec 2009 00:53:56 +0000 (16:53 -0800)
commit59a3cae402d648041d766051894c432d73ff89e3
tree4ce5826db328fb2725da6a4bbdc6850561e6fc1f
parent8bf58725b23a25a4d153a9b90624eb95c0aeca12
- Parse expressions as opposed to statements for gofmt rewrite patterns.
Allows stand-alone types (e.g. []int as patterns) and doesn't require
a semicolon at the end (which are now mandatory terminators).

- Fix a matcher bug.

R=rsc
CC=golang-dev
https://golang.org/cl/179088
src/cmd/gofmt/rewrite.go