]> Cypherpunks repositories - gostls13.git/commitdiff
change tabwidth to 8 for tests
authorRobert Griesemer <gri@golang.org>
Tue, 6 Oct 2009 16:52:37 +0000 (09:52 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 6 Oct 2009 16:52:37 +0000 (09:52 -0700)
R=rsc
DELTA=39  (0 added, 0 deleted, 39 changed)
OCL=35360
CL=35376

src/pkg/go/printer/printer_test.go
src/pkg/go/printer/testdata/comments.x
src/pkg/go/printer/testdata/declarations.golden
src/pkg/go/printer/testdata/expressions.golden

index 2f98eacf47a18df0bdf89a84fa1877534ab1de38..df42c398eb07a5177fc0a2208b917c7c5f7316a7 100644 (file)
@@ -17,7 +17,7 @@ import (
 
 const (
        dataDir = "testdata";
-       tabwidth = 4;
+       tabwidth = 8;
 )
 
 
index 5e22c6b8ddebbfe116e81852f5bb411949edd01f..79889fae18c868bf6550958437758d823b12cabf 100644 (file)
@@ -17,7 +17,7 @@ type S0 struct {
 type S1 struct {
        S0;
        A, B, C float;  // 3 exported fields
-       D               int;    // 2 unexported fields
+       D       int;    // 2 unexported fields
        // contains unexported fields
 }
 
index 9ea0b597282dc48b3ae3790a4236081460440fc7..23f3c8aa5b7b7b5badccb05702bb660f13471582 100644 (file)
@@ -19,10 +19,10 @@ import (
 )
 
 import (
-                               "io";
+                       "io";
        aLongRename     "io";
-       b                       "io";
-       c                       "i" "o";
+       b               "io";
+       c               "i" "o";
 )
 
 // no newlines between consecutive single imports, but
@@ -124,16 +124,16 @@ func _() {
        // no entry has a type
        const (
                zzzzzz  = 1;
-               z               = 2;
-               zzz             = 3;
+               z       = 2;
+               zzz     = 3;
        )
        // some entries have a type
        const (
-               xxxxxx                          = 1;
-               x                                       = 2;
-               xxx                                     = 3;
+               xxxxxx                  = 1;
+               x                       = 2;
+               xxx                     = 3;
                yyyyyyyy        float   = iota;
-               yyyy                            = "bar";
+               yyyy                    = "bar";
                yyy;
                yy              = 2;
        )
@@ -143,31 +143,31 @@ func _() {
        // no entry has a type
        var (
                zzzzzz  = 1;
-               z               = 2;
-               zzz             = 3;
+               z       = 2;
+               zzz     = 3;
        )
        // some entries have a type
        var (
                xxxxxx          int;
-               x                       float;
-               xxx                     string;
-               yyyyyyyy        int             = 1234;
-               y                       float   = 3.14;
-               yyyy                            = "bar";
-               yyy                     string  = "foo";
+               x               float;
+               xxx             string;
+               yyyyyyyy        int     = 1234;
+               y               float   = 3.14;
+               yyyy                    = "bar";
+               yyy             string  = "foo";
        )
 }
 
 func _() {
        type (
                xxxxxx  int;
-               x               float;
-               xxx             string;
+               x       float;
+               xxx     string;
                xxxxx   []x;
-               xx              struct{};
+               xx      struct{};
                xxxxxxx struct {
                        _, _    int;
-                       _               float;
+                       _       float;
                };
                xxxx    chan<- string;
        )
@@ -178,7 +178,7 @@ func _() {
 type ES struct{}
 
 type _ struct {        // this comment must not change indentation
-       f                                       int;
+       f                       int;
        f, ff, fff, ffff        int;
 }
 
@@ -216,14 +216,14 @@ type _ struct {
 
 type _ struct {
        bool;
-       a, b, c                         int;
-       int                                     "tag";
-       ES;                                     // comment
-       float                           "tag";  // comment
-       f                                       int;    // comment
+       a, b, c                 int;
+       int                     "tag";
+       ES;                     // comment
+       float                   "tag";  // comment
+       f                       int;    // comment
        f, ff, fff, ffff        int;    // comment
-       g                                       float   "tag";
-       h                                       float   "tag";  // comment
+       g                       float   "tag";
+       h                       float   "tag";  // comment
 }
 
 
@@ -246,16 +246,16 @@ type _ interface {
 }
 
 type _ interface {     // this comment must not change indentation
-       EI;                                                     // here's a comment
-       f();                                            // no blank between identifier and ()
-       fffff();                                        // no blank between identifier and ()
+       EI;                             // here's a comment
+       f();                            // no blank between identifier and ()
+       fffff();                        // no blank between identifier and ()
        gggggggggggg(x, y, z int);      // hurray
 }
 
 // formatting of variable declarations
 func _() {
        type day struct {
-               n                       int;
+               n               int;
                short, long     string;
        }
        var (
index 61adaca9cffe478751edaaf4e98bdb3b493f9e35..5b2cfca28d3265954c9048b49b789f1892ceb4b8 100644 (file)
@@ -9,11 +9,11 @@ type T struct {
 }
 
 var (
-       a, b, c, d, e                                                                           int;
+       a, b, c, d, e                                           int;
        longIdentifier1, longIdentifier2, longIdentifier3       int;
-       t0, t1, t2                                                                                      T;
-       s                                                                                                       string;
-       p                                                                                                       *int;
+       t0, t1, t2                                              T;
+       s                                                       string;
+       p                                                       *int;
 )