diff options
author | mid-kid <esteve.varela@gmail.com> | 2020-09-09 23:19:42 +0200 |
---|---|---|
committer | mid-kid <esteve.varela@gmail.com> | 2020-09-09 23:19:42 +0200 |
commit | b248d00f396d576074070e836c967ad814519bfb (patch) | |
tree | bbe005541b1507972e8bc454b4b28630fb242917 | |
parent | 9ecb7765b2913cffbca4a63677eec7bd8bce0300 (diff) |
mgbdis: Support end-of-line comments in sym files
-rwxr-xr-x | mgbdis/mgbdis.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mgbdis/mgbdis.py b/mgbdis/mgbdis.py index f864cfa..635bba3 100755 --- a/mgbdis/mgbdis.py +++ b/mgbdis/mgbdis.py @@ -716,7 +716,8 @@ class Symbols: for line in f: # ignore comments and empty lines - if line[0] != ';' and len(line.strip()): + line = line.split(";")[0].strip() + if line: self.add_symbol_definition(line) f.close() |