fix comment stripping
the sequence stab YH ; comment didn't parse because of trailing space
This commit is contained in:
parent
5d7d94e6bd
commit
b86c6255c6
1 changed files with 1 additions and 1 deletions
2
ptasm.py
2
ptasm.py
|
|
@ -83,7 +83,7 @@ Grammar = (
|
|||
| Empty())
|
||||
|
||||
def strip(line):
|
||||
return line.rstrip().split(";", 1)[0]
|
||||
return line.split(";", 1)[0].rstrip()
|
||||
|
||||
class Assembler:
|
||||
def __init__(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue