| ... | @@ -3374,6 +3374,24 @@ test "zig fmt: test comments in field access chain" { | ... | @@ -3374,6 +3374,24 @@ test "zig fmt: test comments in field access chain" { |
| 3374 | ); | 3374 | ); |
| 3375 | } | 3375 | } |
| 3376 | | 3376 | |
| | 3377 | test "zig fmt: Indent comma correctly after multiline string literals in arg list (trailing comma)" { |
| | 3378 | try testCanonical( |
| | 3379 | \\fn foo() void { |
| | 3380 | \\ z.display_message_dialog( |
| | 3381 | \\ *const [323:0]u8, |
| | 3382 | \\ \\Message Text |
| | 3383 | \\ \\------------ |
| | 3384 | \\ \\xxxxxxxxxxxx |
| | 3385 | \\ \\xxxxxxxxxxxx |
| | 3386 | \\ , |
| | 3387 | \\ g.GtkMessageType.GTK_MESSAGE_WARNING, |
| | 3388 | \\ null, |
| | 3389 | \\ ); |
| | 3390 | \\} |
| | 3391 | \\ |
| | 3392 | ); |
| | 3393 | } |
| | 3394 | |
| 3377 | const std = @import("std"); | 3395 | const std = @import("std"); |
| 3378 | const mem = std.mem; | 3396 | const mem = std.mem; |
| 3379 | const warn = std.debug.warn; | 3397 | const warn = std.debug.warn; |