From 6d7de5ae75aa6ddf3b62a870670108a8909d36b4 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Thu, 17 Dec 2015 18:35:25 +0100 Subject: [PATCH] More powerful tokenizer regex installed. --- Emulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emulator.py b/Emulator.py index 9d04762..61bccf3 100644 --- a/Emulator.py +++ b/Emulator.py @@ -62,7 +62,7 @@ class Emulator: self.changes[reg] = val def processSourceLine(self, line_text, index): - tokens = re.findall(r'[\w%:$#]+', line_text) + tokens = re.findall(r'[^\s,]+', line_text) if len(tokens) <= 0: return index if tokens[0][-1] == ':':