Preserve primitive count recursion
This commit is contained in:
1 parent
0191f2081b
commit
4767384b08
1 file changed
+2
-1
@@ -93,7 +93,8 @@ macro_rules! primitives {
|
||||
}
|
||||
)*
|
||||
};
|
||||
(@count $t1:tt $($t:tt)+) => { 1 + primitives!(@count $($t),+) };
|
||||
// Preserve the whitespace-separated token shape across recursion.
|
||||
(@count $t1:tt $($t:tt)+) => { 1 + primitives!(@count $($t)+) };
|
||||
(@count $t:tt) => { 1 };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user