mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Make *-2 and *2 only work for local variables. Needed an adition to the parser.
This commit is contained in:
parent
d8f42a5071
commit
01f2bba2f4
2 changed files with 10 additions and 14 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue