diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-22 11:44:07 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-09-22 11:44:07 -0700 |
| commit | 6882862d0ff226d73bc6a010d335896c44d8cde9 (patch) | |
| tree | fe91165713eacf3f55b3884be27bd305f9ad88a2 /lib/secrets.nom | |
| parent | d3a5fc73bc9aa37f58b2e159a9959afb53df73e3 (diff) | |
Cleaned up code generation to have less cruft.
Diffstat (limited to 'lib/secrets.nom')
| -rw-r--r-- | lib/secrets.nom | 9 |
1 files changed, 4 insertions, 5 deletions
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 |
