You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
only strip comments when a semicolon appears on the line
This commit is contained in:
@@ -271,9 +271,11 @@ for l in sys.stdin:
|
|||||||
sys.stdout.write(l)
|
sys.stdout.write(l)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# strip comments
|
|
||||||
asm = ""
|
asm = ""
|
||||||
|
|
||||||
|
# strip comments
|
||||||
comment = None
|
comment = None
|
||||||
|
if ";" in l:
|
||||||
in_quotes = False
|
in_quotes = False
|
||||||
in_comment = False
|
in_comment = False
|
||||||
for letter in l:
|
for letter in l:
|
||||||
@@ -293,6 +295,8 @@ for l in sys.stdin:
|
|||||||
comment = ";"
|
comment = ";"
|
||||||
else:
|
else:
|
||||||
asm += letter
|
asm += letter
|
||||||
|
else:
|
||||||
|
asm = l
|
||||||
|
|
||||||
# skip asm with no quotes
|
# skip asm with no quotes
|
||||||
if "\"" not in asm:
|
if "\"" not in asm:
|
||||||
|
Reference in New Issue
Block a user