From 489f1d6915053c37486d7c06754c8df58a6c9777 Mon Sep 17 00:00:00 2001 From: Brad Arant Date: Wed, 6 Nov 2024 09:08:02 -0800 Subject: [PATCH] Allow jet script to not begin with jet tag. Treat as container. --- Tag.cpp | 2 +- tests/testrandom.jet | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Tag.cpp b/Tag.cpp index bb5c413..dcc2100 100644 --- a/Tag.cpp +++ b/Tag.cpp @@ -95,7 +95,7 @@ namespace jet { } } } else - throw coreutils::Exception("First character of (in) must be a <."); + parseContainer(in); } Tag::~Tag() { diff --git a/tests/testrandom.jet b/tests/testrandom.jet index 87093ec..84cd75b 100755 --- a/tests/testrandom.jet +++ b/tests/testrandom.jet @@ -1,7 +1,10 @@ #!../jet-2.0 +This is a test + $[random] +$[var1]