1
Fork 0

Update trailing comma match logic, add tests

Updates the traling comma code to attempt to handle multiline non-block bodies when
adding traling commas to blocks. Also add and update tests to cover better
the interactions between trailing commas and wrapping match arms.
This commit is contained in:
Bryce Van Dyk 2015-12-01 20:10:57 +13:00
parent 2a430a8947
commit 7ce887abcf
5 changed files with 51 additions and 10 deletions

View file

@ -8,6 +8,7 @@ fn foo() {
"line1";
"line2"
}
b => "bar",
b => (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb),
}
}