aboutsummaryrefslogtreecommitdiff
path: root/lib/control_flow.nom
diff options
context:
space:
mode:
Diffstat (limited to 'lib/control_flow.nom')
-rw-r--r--lib/control_flow.nom4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/control_flow.nom b/lib/control_flow.nom
index 7455ee9..dd602ff 100644
--- a/lib/control_flow.nom
+++ b/lib/control_flow.nom
@@ -75,7 +75,7 @@ immediately:
action [tree %tree has function call %call]:
lua> ".."
local target = (\%call).stub;
- for subtree,_ in coroutine.wrap(function() nomsu:walk_tree(\%tree); end) do
+ for subtree,depth in coroutine.wrap(function() nomsu:walk_tree(\%tree); end) do
if type(subtree) == 'table' and subtree.type == "FunctionCall"
and subtree.stub == target then
return true;
@@ -397,7 +397,7 @@ immediately:
# Do/finally:
immediately:
compile [do %action] to code:
- (%action as lua statements) if ((%action's "type") is "Block")
+ "do\n \(%action as lua statements)\nend" if ((%action's "type") is "Block")
..else "(\(%action as lua))(nomsu);"
compile [do %action then always %final_action] to code: ".."