diff options
Diffstat (limited to 'lisc/parse.c')
-rw-r--r-- | lisc/parse.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisc/parse.c b/lisc/parse.c index 54031e7..fa3194f 100644 --- a/lisc/parse.c +++ b/lisc/parse.c @@ -762,9 +762,11 @@ parsedat(void cb(Dat *)) } if (nextnl() != TNum) err("number expected"); - d.u.num = tokval.num; - cb(&d); - t = nextnl(); + do { + d.u.num = tokval.num; + cb(&d); + t = nextnl(); + } while (t == TNum); if (t == TRBrace) break; if (t != TComma) |