summaryrefslogtreecommitdiff
path: root/src/parser.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.ts')
-rw-r--r--src/parser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.ts b/src/parser.ts
index eeb9acf..216c1bc 100644
--- a/src/parser.ts
+++ b/src/parser.ts
@@ -142,7 +142,7 @@ export const parseDeclarations = (input: string) =>
)
export const parse = (input: string): Array<Expr> => {
- const res = P.many1(exprParser)(input.trim())
+ const res = P.sepBy(exprParser, P.or([comma, whitespace]))(input.trim())
return match(res, {
Ok: ({ value, input }) => {
if (input) {