| ... | @@ -3463,36 +3463,37 @@ test "zig fmt: file ends with struct field" { | ... | @@ -3463,36 +3463,37 @@ test "zig fmt: file ends with struct field" { |
| 3463 | // ); | 3463 | // ); |
| 3464 | //} | 3464 | //} |
| 3465 | | 3465 | |
| 3466 | //test "zig fmt: line comment in array" { | 3466 | test "zig fmt: line comment in array" { |
| 3467 | // try testTransform( | 3467 | try testTransform( |
| 3468 | // \\test "a" { | 3468 | \\test "a" { |
| 3469 | // \\ var arr = [_]u32{ | 3469 | \\ var arr = [_]u32{ |
| 3470 | // \\ 0 | 3470 | \\ 0 |
| 3471 | // \\ // 1, | 3471 | \\ // 1, |
| 3472 | // \\ // 2, | 3472 | \\ // 2, |
| 3473 | // \\ }; | 3473 | \\ }; |
| 3474 | // \\} | 3474 | \\} |
| 3475 | // \\ | 3475 | \\ |
| 3476 | // , | 3476 | , |
| 3477 | // \\test "a" { | 3477 | \\test "a" { |
| 3478 | // \\ var arr = [_]u32{ | 3478 | \\ var arr = [_]u32{ |
| 3479 | // \\ 0, // 1, | 3479 | \\ 0, |
| 3480 | // \\ // 2, | 3480 | \\ // 1, |
| 3481 | // \\ }; | 3481 | \\ // 2, |
| 3482 | // \\} | 3482 | \\ }; |
| 3483 | // \\ | 3483 | \\} |
| 3484 | // ); | 3484 | \\ |
| 3485 | // try testCanonical( | 3485 | ); |
| 3486 | // \\test "a" { | 3486 | try testCanonical( |
| 3487 | // \\ var arr = [_]u32{ | 3487 | \\test "a" { |
| 3488 | // \\ 0, | 3488 | \\ var arr = [_]u32{ |
| 3489 | // \\ // 1, | 3489 | \\ 0, |
| 3490 | // \\ // 2, | 3490 | \\ // 1, |
| 3491 | // \\ }; | 3491 | \\ // 2, |
| 3492 | // \\} | 3492 | \\ }; |
| 3493 | // \\ | 3493 | \\} |
| 3494 | // ); | 3494 | \\ |
| 3495 | //} | 3495 | ); |
| | 3496 | } |
| 3496 | | 3497 | |
| 3497 | test "zig fmt: comment after params" { | 3498 | test "zig fmt: comment after params" { |
| 3498 | try testTransform( | 3499 | try testTransform( |