summaryrefslogtreecommitdiff
path: root/cook
diff options
context:
space:
mode:
Diffstat (limited to 'cook')
-rw-r--r--cook/parse.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/cook/parse.scm b/cook/parse.scm
index 46313b0..ee4cdf2 100644
--- a/cook/parse.scm
+++ b/cook/parse.scm
@@ -134,7 +134,9 @@ https://github.com/cooklang/spec/blob/main/EBNF.md
(meta-key ((=> k (+ ,metadata-chars))
(list->string k)))
- (amount ((: (=> q ,quantity) "%" (=> u ,unit))
+ (amount ((=> q ,whitespace)
+ #f)
+ ((: (=> q ,quantity) "%" (=> u ,unit))
(make-amount q u))
((=> q ,quantity)
(make-amount q #f)))