mirror of https://github.com/pret/pokecrystal.git
only strip comments when a semicolon appears on the line
This commit is contained in:
parent
d358b39024
commit
6e083c9b3a
|
@ -271,9 +271,11 @@ for l in sys.stdin:
|
|||
sys.stdout.write(l)
|
||||
continue
|
||||
|
||||
# strip comments
|
||||
asm = ""
|
||||
|
||||
# strip comments
|
||||
comment = None
|
||||
if ";" in l:
|
||||
in_quotes = False
|
||||
in_comment = False
|
||||
for letter in l:
|
||||
|
@ -293,6 +295,8 @@ for l in sys.stdin:
|
|||
comment = ";"
|
||||
else:
|
||||
asm += letter
|
||||
else:
|
||||
asm = l
|
||||
|
||||
# skip asm with no quotes
|
||||
if "\"" not in asm:
|
||||
|
|
Loading…
Reference in New Issue