aboutsummaryrefslogtreecommitdiffstats
path: root/scope.moon
diff options
context:
space:
mode:
Diffstat (limited to 'scope.moon')
-rw-r--r--scope.moon2
1 files changed, 1 insertions, 1 deletions
diff --git a/scope.moon b/scope.moon
index 907269e..bba2db4 100644
--- a/scope.moon
+++ b/scope.moon
@@ -60,7 +60,7 @@ class Scope
start, rest = key\match '^(.-)/(.*)'
if not start
- return @parent\get key
+ return @parent and @parent\get key
scope = @get start
assert scope and scope.type == 'scope', "cant find '#{prefix}#{start}' for '#{prefix}#{key}'"