aboutsummaryrefslogtreecommitdiff
path: root/lib/control_flow.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-12-30 14:31:07 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2017-12-30 14:31:07 -0800
commit4789892824237dfb45d5f1cfb3442bfede34eeac (patch)
tree32a32f66263f20d4b65ed8dbef8e0ee733366214 /lib/control_flow.nom
parent21a6314e270344e6923bb4f0a06fd09b0d9ae581 (diff)
Got everything mostly working.
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 b7b5f19..7658ae1 100644
--- a/lib/control_flow.nom
+++ b/lib/control_flow.nom
@@ -31,10 +31,10 @@ compile [go to %label] to code: ".."
rule [tree %tree has function call %call] =:
lua> ".."
- local target = (\(%call)).value;
+ local target = (\(%call)).stub;
for subtree,_ in coroutine.wrap(function() nomsu:walk_tree(\(%tree)); end) do
if type(subtree) == 'table' and subtree.type == "FunctionCall"
- and nomsu.utils.equivalent(subtree.value, target, 2) then
+ and subtree.stub == target then
return true;
end
end