| ... | @@ -2103,34 +2103,34 @@ test "zig fmt: same line comments in expression" { | ... | @@ -2103,34 +2103,34 @@ test "zig fmt: same line comments in expression" { |
| 2103 | ); | 2103 | ); |
| 2104 | } | 2104 | } |
| 2105 | | 2105 | |
| 2106 | //test "zig fmt: add comma on last switch prong" { | 2106 | test "zig fmt: add comma on last switch prong" { |
| 2107 | // try testTransform( | 2107 | try testTransform( |
| 2108 | // \\test "aoeu" { | 2108 | \\test "aoeu" { |
| 2109 | // \\switch (self.init_arg_expr) { | 2109 | \\switch (self.init_arg_expr) { |
| 2110 | // \\ InitArg.Type => |t| { }, | 2110 | \\ InitArg.Type => |t| { }, |
| 2111 | // \\ InitArg.None, | 2111 | \\ InitArg.None, |
| 2112 | // \\ InitArg.Enum => { } | 2112 | \\ InitArg.Enum => { } |
| 2113 | // \\} | 2113 | \\} |
| 2114 | // \\ switch (self.init_arg_expr) { | 2114 | \\ switch (self.init_arg_expr) { |
| 2115 | // \\ InitArg.Type => |t| { }, | 2115 | \\ InitArg.Type => |t| { }, |
| 2116 | // \\ InitArg.None, | 2116 | \\ InitArg.None, |
| 2117 | // \\ InitArg.Enum => { }//line comment | 2117 | \\ InitArg.Enum => { }//line comment |
| 2118 | // \\ } | 2118 | \\ } |
| 2119 | // \\} | 2119 | \\} |
| 2120 | // , | 2120 | , |
| 2121 | // \\test "aoeu" { | 2121 | \\test "aoeu" { |
| 2122 | // \\ switch (self.init_arg_expr) { | 2122 | \\ switch (self.init_arg_expr) { |
| 2123 | // \\ InitArg.Type => |t| {}, | 2123 | \\ InitArg.Type => |t| {}, |
| 2124 | // \\ InitArg.None, InitArg.Enum => {}, | 2124 | \\ InitArg.None, InitArg.Enum => {}, |
| 2125 | // \\ } | 2125 | \\ } |
| 2126 | // \\ switch (self.init_arg_expr) { | 2126 | \\ switch (self.init_arg_expr) { |
| 2127 | // \\ InitArg.Type => |t| {}, | 2127 | \\ InitArg.Type => |t| {}, |
| 2128 | // \\ InitArg.None, InitArg.Enum => {}, //line comment | 2128 | \\ InitArg.None, InitArg.Enum => {}, //line comment |
| 2129 | // \\ } | 2129 | \\ } |
| 2130 | // \\} | 2130 | \\} |
| 2131 | // \\ | 2131 | \\ |
| 2132 | // ); | 2132 | ); |
| 2133 | //} | 2133 | } |
| 2134 | | 2134 | |
| 2135 | test "zig fmt: same-line comment after a statement" { | 2135 | test "zig fmt: same-line comment after a statement" { |
| 2136 | try testCanonical( | 2136 | try testCanonical( |