authorgravatar for lachlan@lakebythewoods.xyzLachlan Easton <lachlan@lakebythewoods.xyz> 2020-08-30 10:34:44+10:00
committergravatar for lachlan@lakebythewoods.xyzLachlan Easton <lachlan@lakebythewoods.xyz> 2020-09-09 21:54:42+10:00
log601331833a148ff3a1ab5cb4bba8bc63f4850e13
tree1f17f82df130c8801c6ac0225ef9ab2e90f961a1
parent283d441c19d5bafa01a7df24db277a6b08a86c00

Add passing test. close #5343


1 files changed, 18 insertions(+), 0 deletions(-)

lib/std/zig/parser_test.zig+18
......@@ -3374,6 +3374,24 @@ test "zig fmt: test comments in field access chain" {
33743374 );
33753375}
33763376
3377test "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
33773395const std = @import("std");
33783396const mem = std.mem;
33793397const warn = std.debug.warn;