summaryrefslogtreecommitdiff
path: root/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lexer.c')
-rw-r--r--lexer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lexer.c b/lexer.c
index 93fdb62..974d66e 100644
--- a/lexer.c
+++ b/lexer.c
@@ -124,6 +124,7 @@ lexline(InputStream *input, int toplevel)
stmt->toks[stmt->ntoks]->operator.type = OperatortypeDop;
stmt->toks[stmt->ntoks]->operator.dyadic = oplevel == 2;
stmt->toks[stmt->ntoks]->operator.dop = runestrdup(buf);
+ stmt->toks[stmt->ntoks]->operator.scope = getcurrentdfn();
}
}else if(peek == '('){
int unclosed = 1;