fixed scoping for local on for tag.

This commit is contained in:
brad Arant committed 2024-12-21 20:26:46 -08:00
1 parent f3b66d9770
commit 9a9abab92d
17 files changed
+751 -233

No files matched your search

+3 -1
View File
@@ -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();