summaryrefslogtreecommitdiff
path: root/cook
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-08-12 00:38:03 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-08-12 00:38:17 +0200
commit2bf752040928be5933a819b0ea10e2d3812c2eed (patch)
tree83425004bbb8dd73fb24b53790f572f2b6965f55 /cook
parente31c5559b8e58965a6d50fc767a8401d0bafc7d1 (diff)
Add spaces after each step-line
Diffstat (limited to 'cook')
-rw-r--r--cook/parse.scm6
1 files changed, 2 insertions, 4 deletions
diff --git a/cook/parse.scm b/cook/parse.scm
index 098b866..b18afba 100644
--- a/cook/parse.scm
+++ b/cook/parse.scm
@@ -142,12 +142,10 @@ https://github.com/cooklang/spec/blob/main/EBNF.md
(step-line ((: (? ,whitespace)
(=> s (+ ,text-item))
- (? ,nl))
- (concatenate s)))
+ (=> n (? ,nl)))
+ (append (concatenate s) (if n '(#\space) '()))))
(step ((: (=> s ,step-line) (=> ns (* ,step-line)))
- ;; TODO It's not converting the end of the step-line to a
- ;; space
(make-step (concatenate (append (list s) ns)))))
(metadata ((: bol ">>" (* ,whitespace)