Fixed scope problem on ResolveKeyword.

This commit is contained in:
brad Arant 2025-01-03 11:24:48 -08:00
parent f6dda8496c
commit 6959bd8f85
2 changed files with 4 additions and 2 deletions

View File

@ -111,7 +111,7 @@ namespace jet {
} }
void Tag::resolveKeyword(coreutils::ZString keyword) { void Tag::resolveKeyword(coreutils::ZString keyword) {
keywords[keyword] = KeywordValue(keywords[keyword], global, parent->local->variables, keywords); keywords[keyword] = KeywordValue(keywords[keyword], global, parent->local->variables, parent->keywords);
} }
void Tag::processContainer(coreutils::ZString &container) { void Tag::processContainer(coreutils::ZString &container) {

View File

@ -65,8 +65,10 @@
$[ls] $[ls]
<read file="../compile" name="file" /> <read file="../compile" name="file" />
$[file] $[file]
<whiledir path="." filename="file" fullpath="fullpath" filenamenoextension="noext" sort="true"> <comment>
<whiledir path="/var/www" filename="file" fullpath="fullpath" filenamenoextension="noext" sort="true">
$[file] $[fullpath] $[noext] $[file] $[fullpath] $[noext]
</whiledir> </whiledir>
</comment>
</html> </html>
</jet> </jet>