diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-05-04 20:14:00 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-05-04 20:14:00 -0500 |
commit | e69402f48a43222418a0a60f3317a3e832d94126 (patch) | |
tree | 0a979d91f3a0e8e54bcf24a5eb7bfe04c62059ee /crystal.py | |
parent | a140713e3809c9108695d449d326b1a64255a91a (diff) |
make sure the bytes don't run out with no ending byte in MainText
original-commit-id: 7d17027ffbc9a84cfb981bcadd76d5f2a052b7fa
Diffstat (limited to 'crystal.py')
-rw-r--r-- | crystal.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1963,6 +1963,10 @@ class MainText(TextCommand): new_line = False was_comma = False + # this shouldn't happen because of the rom_until calls in the parse method + if not end: + raise Exception, "ran out of bytes without the script ending?" + # last character may or may not be allowed to be a newline? # Script.to_asm() has command.to_asm()+"\n" if output[-1] == "\n": |