Skip to content

Commit

Permalink
make it so the register thing only matches one-length strings end.
Browse files Browse the repository at this point in the history
  • Loading branch information
tim committed Apr 7, 2012
1 parent feabc63 commit 46258d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sixteen/parser.py
Expand Up @@ -55,7 +55,7 @@ class AssemblyParser(Parser):
rs = r"([a-cx-zijA-CX-ZIJ]{1})"

# values: all values return their value code and None or their next word
@parse(r"%s" % rs)
@parse(r"^%s$" % rs)
def register(self, name):
n = self.registers.index(name.upper())
return (n, None)
Expand Down

0 comments on commit 46258d8

Please sign in to comment.