Fix primitive count recursion

This commit is contained in:
iris committed 2026-09-13 01:04:26 -04:00
1 parent db9b0f21d5
commit fc1ba3cdc3
1 file changed
+2 -1
+2 -1
View File
@@ -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 };
}