fix(parser): fix variadic macro

This commit is contained in:
ObserverOfTime 2024-03-28 14:27:44 +02:00 committed by Amaan Qureshi
parent 80dabf96c7
commit 78b6067a5d
2 changed files with 6 additions and 4 deletions

View file

@ -1296,7 +1296,11 @@ impl Generator {
production_id,
..
} => {
add!(self, "REDUCE({}, {child_count}", self.symbol_ids[&symbol]);
add!(
self,
"REDUCE(.symbol = {}, .child_count = {child_count}",
self.symbol_ids[&symbol]
);
if dynamic_precedence != 0 {
add!(self, ", .dynamic_precedence = {dynamic_precedence}");
}