Also allow lcase global keyword

Closes #221
This commit is contained in:
Jason Turner
2016-01-31 19:15:32 -07:00
parent 03ef44f415
commit b104b26f11
4 changed files with 26 additions and 5 deletions

View File

@@ -2065,7 +2065,7 @@ namespace chaiscript
}
build_match<eval::Var_Decl_AST_Node>(prev_stack_top);
} else if (Keyword("GLOBAL")) {
} else if (Keyword("GLOBAL") || Keyword("global")) {
retval = true;
if (!(Reference() || Id())) {