From fc1ba3cdc390bd40cbcbf4fa5a9e91ccbb1d9323 Mon Sep 17 00:00:00 2001 From: iris <2+iris@noreply.localhost> Date: Sun, 13 Sep 2026 01:04:26 -0400 Subject: [PATCH] Fix primitive count recursion --- core/src/render/primitive.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/render/primitive.rs b/core/src/render/primitive.rs index f8f1069..e249f8f 100644 --- a/core/src/render/primitive.rs +++ b/core/src/render/primitive.rs @@ -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 }; }