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 72a2ad1..33f72ab 100644
--- a/lib/control_flow.nom
+++ b/lib/control_flow.nom
@@ -210,7 +210,7 @@ compile [when %body] to code:
if (%result != ""):
%result join= "\nend"
- %result
+ return %result
# Switch statement
compile [when %branch_value == ? %body] to code:
@@ -259,7 +259,7 @@ compile [when %branch_value == ? %body] to code:
..\%result
end
end --when == ?
- %result
+ return %result
# Try/except
compile [..]