]> Cypherpunks repositories - gostls13.git/commit
go/printer, gofmt: smarter handling of multi-line raw strings
authorRobert Griesemer <gri@golang.org>
Sat, 5 Feb 2011 01:34:16 +0000 (17:34 -0800)
committerRobert Griesemer <gri@golang.org>
Sat, 5 Feb 2011 01:34:16 +0000 (17:34 -0800)
commitd812e8c994a2ef15c0f2819581db51fa07fe5b05
tree304dffbed0b5ca82cef68d89d8f6d5c1bbc5eb5f
parent42973dddf46876119cfba7f44eb190de56f3144b
go/printer, gofmt: smarter handling of multi-line raw strings

If a multi-line raw string is the first token on a line, it
should not be indented because the following lines (belonging
to the raw string) are not indented either.

Adjusted src of ebnf/ebnf_test.go manually as it now is formatted
as expected.

gofmt -w src misc

Fixes #1072.

R=r
CC=golang-dev
https://golang.org/cl/4119056
src/pkg/ebnf/ebnf_test.go
src/pkg/go/printer/printer.go
src/pkg/go/printer/testdata/expressions.golden
src/pkg/go/printer/testdata/expressions.input
src/pkg/go/printer/testdata/expressions.raw