From 073e240233589933c43143c997247c33206bb066 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 9 Nov 2009 21:13:17 -0800 Subject: - replaced gofmt expression formatting algorithm with rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1026036 --- src/pkg/go/scanner/scanner.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/pkg/go/scanner/scanner.go') diff --git a/src/pkg/go/scanner/scanner.go b/src/pkg/go/scanner/scanner.go index cc4ff9cc4..8391c693e 100644 --- a/src/pkg/go/scanner/scanner.go +++ b/src/pkg/go/scanner/scanner.go @@ -52,7 +52,7 @@ func (S *Scanner) next() { S.pos.Column = 0; case r >= 0x80: // not ASCII - r, w = utf8.DecodeRune(S.src[S.offset : len(S.src)]) + r, w = utf8.DecodeRune(S.src[S.offset:len(S.src)]) } S.offset += w; S.ch = r; @@ -67,7 +67,7 @@ func (S *Scanner) next() { // They control scanner behavior. // const ( - ScanComments = 1<