Allow simple multiline commands in arg list and container arg list
This commit is contained in:
parent
3a951cea99
commit
91011695f0
@ -691,8 +691,10 @@ namespace chaiscript
|
|||||||
|
|
||||||
if (Equation()) {
|
if (Equation()) {
|
||||||
retval = true;
|
retval = true;
|
||||||
|
while (Eol());
|
||||||
if (Char(',')) {
|
if (Char(',')) {
|
||||||
do {
|
do {
|
||||||
|
while (Eol());
|
||||||
if (!Equation()) {
|
if (!Equation()) {
|
||||||
throw Eval_Error("Unexpected value in parameter list", match_stack.back());
|
throw Eval_Error("Unexpected value in parameter list", match_stack.back());
|
||||||
}
|
}
|
||||||
@ -718,8 +720,10 @@ namespace chaiscript
|
|||||||
}
|
}
|
||||||
else if (Map_Pair()) {
|
else if (Map_Pair()) {
|
||||||
retval = true;
|
retval = true;
|
||||||
|
while (Eol());
|
||||||
if (Char(',')) {
|
if (Char(',')) {
|
||||||
do {
|
do {
|
||||||
|
while (Eol());
|
||||||
if (!Map_Pair()) {
|
if (!Map_Pair()) {
|
||||||
throw Eval_Error("Unexpected value in container", match_stack.back());
|
throw Eval_Error("Unexpected value in container", match_stack.back());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user