Support default case in the non-last position

This commit is contained in:
Jason Turner
2015-10-15 15:02:49 -06:00
parent 64dd349e32
commit 84e2d449b9
3 changed files with 21 additions and 1 deletions

View File

@@ -1807,6 +1807,8 @@ namespace chaiscript
build_match<eval::Case_AST_Node>(prev_stack_top);
} else if (Keyword("default")) {
retval = true;
while (Eol()) {}
if (!Block()) {