Skip to content

Commit 7085910

Browse files
author
David Lavoie-Boutin
committed
Fix parsing of negative number
1 parent 520db0e commit 7085910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assembler/Assembler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Assembler(object):
3030
full_line_comment = re.compile(ur'^\s*#.*')
3131
inline_comment_regex = re.compile(ur'#.+$')
3232
label_regex = re.compile(ur'^.*?(?=:)')
33-
argument_regex = re.compile(ur'([\w|$]+)')
33+
argument_regex = re.compile(ur'(-*[\w|$]+)')
3434
between_parentheses = re.compile(ur'(?<=\().+(?=\))')
3535
before_parentheses = re.compile(ur'(?<=\s).+(?=\()')
3636

0 commit comments

Comments
 (0)