mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Don't always output a space after the unary minus, only when necessary.
This commit is contained in:
parent
4fbbda60a7
commit
01d8bba3f4
1 changed files with 3 additions and 1 deletions
|
@ -274,6 +274,8 @@ class outscript(object):
|
|||
ret = '-'
|
||||
if lnt in self.op_priority:
|
||||
paren = self.op_priority[lnt] <= self.op_priority['-']
|
||||
elif lnt == 'NEG' or lnt == '--V':
|
||||
ret += ' ' # don't output -- as that's a different token
|
||||
else:
|
||||
if lnt in self.op_priority:
|
||||
paren = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue