aboutsummaryrefslogtreecommitdiff
path: root/core/control_flow.nom
diff options
context:
space:
mode:
Diffstat (limited to 'core/control_flow.nom')
-rw-r--r--core/control_flow.nom2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/control_flow.nom b/core/control_flow.nom
index 4066a97..d40c349 100644
--- a/core/control_flow.nom
+++ b/core/control_flow.nom
@@ -88,7 +88,7 @@ immediately:
locals: %body_lua's "locals"
statements:".."
for \(%subtree as lua expr) in coroutine.wrap(function() nomsu:walk_tree(\(%tree as lua expr)) end) do
- if type(\(%subtree as lua expr)) == 'table' and \(%subtree as lua expr).type then
+ if Types.is_node(\(%subtree as lua expr)) then
if \(%condition as lua expr) then
\%body_statements
break;