From 7cab6916c7b9396ffb75ed20ceff446f4f5cfe76 Mon Sep 17 00:00:00 2001 From: Brad Arant Date: Mon, 11 Nov 2024 09:16:11 -0800 Subject: [PATCH] header tag upgraded to keyword resolution method. --- __header.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/__header.cpp b/__header.cpp index 380c24f..13e9d71 100644 --- a/__header.cpp +++ b/__header.cpp @@ -16,7 +16,8 @@ namespace jet { if(variableDefined("expr") && variableDefined("value") && !hasContainer) throw coreutils::Exception("header tag cannot have both expr and value."); if(!variableDefined("expr") && !variableDefined("value") && !hasContainer) - throw coreutils::Exception("header tag must have a value, expr or a container."); + throw coreutils::Exception("header tag must have a value, expr or a container."); + resolveKeyword("name"); if(variableDefined("expr")) { if(variableDefined("eval")) throw coreutils::Exception("Cannot use eval with expr."); @@ -28,8 +29,9 @@ namespace jet { } else { global.headers[variables["name"]] = container; } - } else - global.headers[variables["name"]] = variables["value"]; - + } else { + resolveKeyword("value"); + global.headers[variables["name"]] = variables["value"]; + } } }