mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-03 00:18:20 +00:00
Add --blacklist, to blacklist constants; defauls to NAK,JSON_*
Closes #30, but not the general problem of control characters in the source.
This commit is contained in:
parent
5841c2c17a
commit
d03de9a6be
3 changed files with 54 additions and 13 deletions
|
@ -89,6 +89,8 @@ class renamer(object):
|
|||
functions.append(name)
|
||||
elif kind == 'v':
|
||||
globalvars.append(name)
|
||||
elif kind == 'c':
|
||||
pass
|
||||
else:
|
||||
assert False, 'Invalid kind at this scope: ' \
|
||||
+ kind # pragma: no cover
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue