All checks were successful
CI / ci (push) Successful in 2m19s
`simpleIngredient` accepts `modifier*` (which includes `&`), `composite` did
not. For `<@&unwaxed lemon{}` the `full` branch failed — `refName` excludes
`&` as a refSigil — and the `bare` branch fell through to `singleWordName`,
which does allow `&` and stops at the first space. The parent was truncated
into a phantom ingredient literally named `&unwaxed`, slugified to a different
id, and so escaped the shopping list's MAX aggregation: two lemons were listed
for a recipe using one, with no warning.
`composite` now takes `modifier*` on both branches, mirroring
`simpleIngredient`. The modifiers are parsed and ignored — CompositeAST carries
none, and `&` is redundant on a parent since MAX already collapses repeat
draws. Accepting them is what keeps the parent name clean.
Chosen over rejecting `<@&` as a syntax error because the single-word form
already behaved correctly; rejecting would have broken working input.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2 lines
106 B
Text
2 lines
106 B
Text
## Prep
|
|
Grate the @zest{1}<@unwaxed lemon{1}, then squeeze the @juice{1}<@&unwaxed lemon{} into the bowl.
|