Allow simple multiline commands in arg list and container arg list

This commit is contained in:
Jonathan Turner 2009-08-26 20:34:32 +00:00
parent 3a951cea99
commit 91011695f0

View File

@ -691,8 +691,10 @@ namespace chaiscript
if (Equation()) {
retval = true;
while (Eol());
if (Char(',')) {
do {
while (Eol());
if (!Equation()) {
throw Eval_Error("Unexpected value in parameter list", match_stack.back());
}
@ -718,8 +720,10 @@ namespace chaiscript
}
else if (Map_Pair()) {
retval = true;
while (Eol());
if (Char(',')) {
do {
while (Eol());
if (!Map_Pair()) {
throw Eval_Error("Unexpected value in container", match_stack.back());
}