diff options
-rw-r--r-- | cook/parse.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cook/parse.scm b/cook/parse.scm index b5f994d..a4ab940 100644 --- a/cook/parse.scm +++ b/cook/parse.scm @@ -87,7 +87,8 @@ https://github.com/cooklang/spec/blob/main/EBNF.md (define-grammar cook (nl ((: ,newline-chars))) (empty-line ((: bol ,nl))) - (whitespace ((+ ,char-set:whitespace))) + (whitespace ((=> x (+ ,char-set:whitespace)) + (list->string x))) (any-text-item ((: (=> c (+ ,any-text-chars))) (list->string c))) |