1
0

More powerful tokenizer regex installed.

This commit is contained in:
Jon Michael Aanes 2015-12-17 18:35:25 +01:00
parent 4b65c75e21
commit 6d7de5ae75

View File

@ -62,7 +62,7 @@ class Emulator:
self.changes[reg] = val self.changes[reg] = val
def processSourceLine(self, line_text, index): def processSourceLine(self, line_text, index):
tokens = re.findall(r'[\w%:$#]+', line_text) tokens = re.findall(r'[^\s,]+', line_text)
if len(tokens) <= 0: if len(tokens) <= 0:
return index return index
if tokens[0][-1] == ':': if tokens[0][-1] == ':':