Made $[%name] to retrieve keyword values in a tag. Has bugs.

This commit is contained in:
brad Arant committed 2025-01-03 10:50:31 -08:00
1 parent 9622b5cf8c
commit f6dda8496c
17 files changed
+85 -64

No files matched your search

+2 -2
View File
@@ -39,7 +39,7 @@ namespace jet {
throw coreutils::Exception("type should not be specified with expr.");
exprMethod = true;
exprSaved = keywords["expr"];
booleanResult = Operand(keywords["expr"], global, parent->variables).boolean;
booleanResult = Operand(keywords["expr"], global, parent->variables, keywords).boolean;
}
while(booleanResult) {
processContainer(container);
@@ -47,7 +47,7 @@ namespace jet {
if(exprMethod) {
keywords["expr"].reset();
keywords["expr"] = exprSaved;
booleanResult = Operand(keywords["expr"], global, parent->variables).boolean;
booleanResult = Operand(keywords["expr"], global, parent->variables, keywords).boolean;
} else {
booleanResult = false;
int rc = keywords["value1"].compare(keywords["value2"]);