From 6882862d0ff226d73bc6a010d335896c44d8cde9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 22 Sep 2017 11:44:07 -0700 Subject: Cleaned up code generation to have less cruft. --- lib/secrets.nom | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/secrets.nom') diff --git a/lib/secrets.nom b/lib/secrets.nom index 60f7748..5d9551f 100644 --- a/lib/secrets.nom +++ b/lib/secrets.nom @@ -27,8 +27,7 @@ macro block [secret %key = %new_value] =: | compiler:error("Assignment operation has the wrong type for the right hand side. " | .."Expected Thunk, but got: "..vars.new_value.type.."\\nMaybe you used '=' instead of '=:'?") |end - ".."|do - | local ret - | \lua expr "compiler:tree_to_lua(vars.new_value.value)"\ - | secrets[\repr (%key's "value")\] = ret - |end + ".." + |local ret + |\lua expr "compiler:tree_to_lua(vars.new_value.value)"\ + |secrets[\repr (%key's "value")\] = ret -- cgit v1.2.3