Make *-2 and *2 only work for local variables. Needed an adition to the parser.

This commit is contained in:
Sei Lisa 2015-03-03 00:49:14 +01:00
parent d8f42a5071
commit 01f2bba2f4
2 changed files with 10 additions and 14 deletions

View file

@ -1335,7 +1335,7 @@ class parser(object):
decl['ch'] = [self.autocastcheck(self.Parse_expression(), typ)]
self.expect(';')
self.NextToken()
self.AddSymbol('v', self.scopeindex, name, Type=typ)
self.AddSymbol('v', self.scopeindex, name, Type=typ, Local=True)
return decl
# If none of the above, it must be an expression.