Make *-2 and *2 only work for local variables. Needed an adition to the parser.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user