summaryrefslogtreecommitdiffhomepage
path: root/tests/cram
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-25 19:58:05 +0200
committerJo-Philipp Wich <jo@mein.io>2021-05-25 22:21:25 +0200
commit9874562545d93582a75bc2e6d58fc772e981a3ba (patch)
tree02084ca6771d425cef509d0a5504a5591dcdb7fd /tests/cram
parent3b665c84d70885a976179f01ce12626255cb5e52 (diff)
lexer: implement raw code mode
Enabling raw code mode allows writing ucode scripts without any template tag decorations (that is, without the need to provide an initial opening '{%' tag). Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/cram')
-rw-r--r--tests/cram/test_basic.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cram/test_basic.t b/tests/cram/test_basic.t
index 3d4cd9e..aab5b16 100644
--- a/tests/cram/test_basic.t
+++ b/tests/cram/test_basic.t
@@ -12,7 +12,7 @@ check that ucode provides exepected help:
$ ucode | sed 's/ucode-san/ucode/'
== Usage ==
- # ucode [-d] [-l] [-r] [-S] [-e '[prefix=]{"var": ...}'] [-E [prefix=]env.json] {-i <file> | -s "ucode script..."}
+ # ucode [-d] [-l] [-r] [-S] [-R] [-e '[prefix=]{"var": ...}'] [-E [prefix=]env.json] {-i <file> | -s "ucode script..."}
-h, --help\tPrint this help (esc)
-i file\tSpecify an ucode script to parse (esc)
-s "ucode script..."\tSpecify an ucode fragment to parse (esc)
@@ -20,6 +20,7 @@ check that ucode provides exepected help:
-l Do not strip leading block whitespace
-r Do not trim trailing block newlines
-S Enable strict mode
+ -R Enable raw code mode
-e Set global variables from given JSON object
-E Set global variables from given JSON file
-m Preload given module