mirror of
https://github.com/pret/pokediamond.git
synced 2026-10-01 04:46:47 -05:00
asm_processor: support asm comments with ;
This commit is contained in:
@@ -375,14 +375,14 @@ def is_temp_name(name):
|
||||
# https://stackoverflow.com/a/241506
|
||||
def re_comment_replacer(match):
|
||||
s = match.group(0)
|
||||
if s[0] in "/#":
|
||||
if s[0] in "/#;":
|
||||
return " "
|
||||
else:
|
||||
return s
|
||||
|
||||
|
||||
re_comment_or_string = re.compile(
|
||||
r'#.*|/\*.*?\*/|"(?:\\.|[^\\"])*"'
|
||||
r';.*|#.*|/\*.*?\*/|"(?:\\.|[^\\"])*"'
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user