1
0
mirror of https://github.com/golang/go synced 2024-11-19 22:04:44 -07:00
go/src/regexp
Joe Tsai b53088a634 Revert "go/printer: forbid empty line before first comment in block"
This reverts commit 08f19bbde1.

Reason for revert:
The changed transformation takes effect on a larger set
of code snippets than expected.

For example, this:
    func foo() {

        // Comment
        bar()

    }
becomes:
    func foo() {
        // Comment
        bar()

    }

This is an unintended consequence.

Change-Id: Ifca88d6267dab8a8170791f7205124712bf8ace8
Reviewed-on: https://go-review.googlesource.com/81335
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Joe Tsai <joetsai@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-12-01 01:12:26 +00:00
..
syntax Revert "go/printer: forbid empty line before first comment in block" 2017-12-01 01:12:26 +00:00
testdata
all_test.go
backtrack.go regexp: make (*bitState).push inlinable 2017-09-25 19:34:26 +00:00
example_test.go
exec2_test.go
exec_test.go all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00
exec.go all: unindent some if bodies by exiting early 2017-10-31 20:07:46 +00:00
find_test.go
onepass_test.go
onepass.go
regexp.go all: revert "all: prefer strings.IndexByte over strings.Index" 2017-10-05 23:19:10 +00:00