From 9874562545d93582a75bc2e6d58fc772e981a3ba Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 25 May 2021 19:58:05 +0200 Subject: 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 --- tests/cram/test_basic.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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 | -s "ucode script..."} + # ucode [-d] [-l] [-r] [-S] [-R] [-e '[prefix=]{"var": ...}'] [-E [prefix=]env.json] {-i | -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 -- cgit v1.2.3