From 4767384b0849f1f06d2dd0074c5b87b77600113c Mon Sep 17 00:00:00 2001 From: iris <2+iris@noreply.localhost> Date: Sun, 13 Sep 2026 01:07:52 -0400 Subject: [PATCH 1/2] Preserve 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 }; } From 3b96324333d857072df6754e791c2d22d744aba8 Mon Sep 17 00:00:00 2001 From: iris <2+iris@noreply.localhost> Date: Sun, 13 Sep 2026 01:10:37 -0400 Subject: [PATCH 2/2] Remove the redundant macro comment --- core/src/render/primitive.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/render/primitive.rs b/core/src/render/primitive.rs index e249f8f..3ce84d3 100644 --- a/core/src/render/primitive.rs +++ b/core/src/render/primitive.rs @@ -93,7 +93,6 @@ macro_rules! primitives { } )* }; - // Preserve the whitespace-separated token shape across recursion. (@count $t1:tt $($t:tt)+) => { 1 + primitives!(@count $($t)+) }; (@count $t:tt) => { 1 }; }