diff options
author | yenatch <yenatch@gmail.com> | 2013-07-03 21:54:33 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-07-10 19:12:48 -0400 |
commit | 341e11cccb33a8ed459cd9a6c41cf1189c6a4550 (patch) | |
tree | 307b2a4dbd778e30c586c00f5004aa70880c8c95 /extras | |
parent | ba5cd8bbb8b96a080e9a6fe1b1525cd5381fdb24 (diff) |
labels: hex is case-insensitive
Diffstat (limited to 'extras')
-rw-r--r-- | extras/labels.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/extras/labels.py b/extras/labels.py index 61ec4c29a..8b4df1638 100644 --- a/extras/labels.py +++ b/extras/labels.py @@ -31,8 +31,10 @@ def line_has_comment_address(line, returnable={}, bank=None): returnable["bank"] = None returnable["offset"] = None returnable["address"] = None - #only valid characters are 0-9A-F - valid = [str(x) for x in range(0,10)] + [chr(x) for x in range(97, 102+1)] + #only valid characters are 0-9a-fA-F + valid = [str(x) for x in range(10)] + \ + [chr(x) for x in range(ord('a'), ord('f')+1)] + \ + [chr(x) for x in range(ord('A'), ord('F')+1)] #check if there is a comment in this line if ";" not in line: return False |