Skip to content

Commit

Permalink
Added test case for spaces after trailing commas in macro match arms.
Browse files Browse the repository at this point in the history
  • Loading branch information
InsertCreativityHere committed Jul 5, 2023
1 parent 8bbb6d3 commit 174b7a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/source/macro_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ macro_rules! m {
() => ();
( $ x : ident ) => ();
( $ m1 : ident , $ m2 : ident , $ x : ident ) => ();
( $ m1 : ident , $ m2 : ident , $ x : ident , ) => ();
( $($beginning:ident),*;$middle:ident;$($end:ident),* ) => ();
( $($beginning: ident),*; $middle: ident; $($end: ident),*; $($beginning: ident),*; $middle: ident; $($end: ident),* ) => {};
( $ name : ident ( $ ( $ dol : tt $ var : ident ) * ) $ ( $ body : tt ) * ) => ();
Expand Down
1 change: 1 addition & 0 deletions tests/target/macro_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ macro_rules! m {
() => {};
($x:ident) => {};
($m1:ident, $m2:ident, $x:ident) => {};
($m1:ident, $m2:ident, $x:ident,) => {};
($($beginning:ident),*; $middle:ident; $($end:ident),*) => {};
(
$($beginning:ident),*;
Expand Down

0 comments on commit 174b7a0

Please sign in to comment.