Bug fix: look up library functions too!

This commit is contained in:
Sei Lisa 2014-07-27 19:18:05 +02:00
parent f3339b0906
commit 30efb5d14c

View file

@ -186,7 +186,7 @@ class parser(object):
# return (symtab[symbol][1], symtab[symbol][3]) # return (symtab[symbol][1], symtab[symbol][3])
return symtab[symbol][1] return symtab[symbol][1]
scope = symtab[-1] scope = symtab[-1]
if self.globalmode and symbol not in self.symtab[0]: if self.globalmode and symbol not in self.symtab[0] and symbol not in self.functions:
return None # Disallow forwards in global var mode return None # Disallow forwards in global var mode
if symbol not in self.globals: if symbol not in self.globals:
return None return None