asm_processor: support asm comments with ;

This commit is contained in:
Rémi Calixte
2021-03-27 18:38:30 +01:00
parent 6850ab1f5f
commit 4ed9bcf63a

View File

@@ -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';.*|#.*|/\*.*?\*/|"(?:\\.|[^\\"])*"'
)