fix(kitchen): warn when spaces around '<' split a composite ingredient in two #260

Merged
abiwab merged 1 commit from fix/spaced-composite-warning into main 2026-11-26 00:09:00 +01:00
Owner

@lemon zest{1} < @lemon{2} parsed as two separate ingredients with no message, counting two lemons too many. Kitchen now raises SPACED_COMPOSITE (warning, data.suggestion: "<@lemon"), and the language server offers a preferred quick fix that glues < back. The parser's invalidComposite guard is kept: it still fires when nothing before the blanks consumed them (err-001), so removing it would change the parse; only a comment was added. Docs en + fr updated (warnings reference, composite page, AI notes, and a wrong claim on the parser page). Conformance unchanged, fuzz 50k clean, full test suite green. Patch changeset included.

`@lemon zest{1} < @lemon{2}` parsed as two separate ingredients with no message, counting two lemons too many. Kitchen now raises `SPACED_COMPOSITE` (warning, `data.suggestion: "<@lemon"`), and the language server offers a preferred quick fix that glues `<` back. The parser's `invalidComposite` guard is kept: it still fires when nothing before the blanks consumed them (`err-001`), so removing it would change the parse; only a comment was added. Docs en + fr updated (warnings reference, composite page, AI notes, and a wrong claim on the parser page). Conformance unchanged, fuzz 50k clean, full test suite green. Patch changeset included.
fix(kitchen): warn when spaces around '<' split a composite ingredient in two
All checks were successful
CI / Build & Test (pull_request) Successful in 6m5s
14f9a9faad
abiwab merged commit 586bcfefa8 into main 2026-11-26 00:09:00 +01:00
abiwab deleted branch fix/spaced-composite-warning 2026-11-26 00:09:01 +01:00
Sign in to join this conversation.
No description provided.