more work on scoping.

This commit is contained in:
Brad Arant 2024-11-26 17:02:59 -08:00
parent ca7aabd73f
commit 90d7d07e7e
3 changed files with 5 additions and 4 deletions

View File

@ -205,7 +205,7 @@ namespace jet {
if(resolveContainerParent)
out.write(global.getVariable(in, parent->variables));
else
out.write(global.getVariable(in, variables));
out.write(global.getVariable(in, local->variables));
} else {
out.write(in.nextChar());
}

View File

@ -17,9 +17,9 @@ noeval=[this is the value store in #[name1].]
nonexistant=[]
numbers=[0123456789]
subtraction=[2]
testinclude=[xThis is a container set with ''x]
testinclude=[]
theexpr=[bcd]
thename=[this is the value store in .]
thename=[this is the value store in localname.]
tohex=[tohex]
varname1=[vardata]
x=[]
@ -27,3 +27,4 @@ x=[]
file=[./testinclude.jet]
localvar=[This is a container set with '']
name1=[]
testinclude=[xThis is a container set with ''x]

View File

@ -2,6 +2,6 @@
This is from an include tag.
localname='#[name1]'
<set name="include" value="yes" />
<set name="testinclude" value="x#[localvar]x" />
<set name="testinclude" value="x#[localvar]x" scope="local" />
test='$[testinclude]'
<dump file="./dump.txt" />