fixed scoping for local on for tag.
This commit is contained in:
1 parent
f3b66d9770
commit
9a9abab92d
17 files changed
+751
-233
No files matched your search
@@ -27,9 +27,11 @@ namespace jet {
|
||||
if(!variableDefined("scope") || (variables["scope"] == "global"))
|
||||
global.variables[variables["name"]] = ix;
|
||||
else if(variables["scope"] == "local")
|
||||
local->variables[variables["name"]] = ix;
|
||||
this->local->variables[variables["name"]] = ix;
|
||||
else if(variables["scope"] == "parent")
|
||||
parent->local->variables[variables["name"]] = ix;
|
||||
else
|
||||
throw coreutils::Exception("scope value is not valid.");
|
||||
}
|
||||
processContainer(container);
|
||||
container.reset();
|
||||
|
||||
Reference in new issue
Block a user