aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2015-11-05 09:57:30 -0500
committerQuentin Carbonneaux <[email protected]>2015-11-05 09:57:30 -0500
commit0b559fcd4d460e464e6c58812eba742cbddd549a (patch)
tree522cd496839df1425040f30b26e6640a71312673
parentdb1864d22ae11342a6e2e7f9a7c08da6d475184b (diff)
support lighter syntax for arrays
-rw-r--r--lisc/parse.c8
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)