diff options
author | Rémi Calixte <remicalixte.rmc@gmail.com> | 2021-03-27 18:38:30 +0100 |
---|---|---|
committer | Rémi Calixte <remicalixte.rmc@gmail.com> | 2021-03-27 18:38:30 +0100 |
commit | 4ed9bcf63ab72b401ef0bf70b9152754c53ad2e4 (patch) | |
tree | f1c52ec0f5a9a0b604d887e2edf5f3b3b54f4ba5 /tools/asm_processor/asm_processor.py | |
parent | 6850ab1f5f9c68553fcc8efb6dd7afe6170a3ea5 (diff) |
asm_processor: support asm comments with ;
Diffstat (limited to 'tools/asm_processor/asm_processor.py')
-rwxr-xr-x | tools/asm_processor/asm_processor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/asm_processor/asm_processor.py b/tools/asm_processor/asm_processor.py index ec01c68e..d97dfe86 100755 --- a/tools/asm_processor/asm_processor.py +++ b/tools/asm_processor/asm_processor.py @@ -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';.*|#.*|/\*.*?\*/|"(?:\\.|[^\\"])*"' ) |