summaryrefslogtreecommitdiff
path: root/scripts/find_error.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/find_error.py')
-rwxr-xr-xscripts/find_error.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/find_error.py b/scripts/find_error.py
index 82a74de0..ebaa1d41 100755
--- a/scripts/find_error.py
+++ b/scripts/find_error.py
@@ -41,14 +41,14 @@ class DebuggingRegexLexer(RegexLexer):
statetokens = tokendefs[self.statestack[-1]]
while 1:
for rexmatch, action, new_state in statetokens:
- self.m = rexmatch(text, self.pos)
- if self.m:
+ self.m = m = rexmatch(text, self.pos)
+ if m:
if type(action) is _TokenType:
- yield self.pos, action, self.m.group()
+ yield self.pos, action, m.group()
else:
- for item in action(self, self.m):
+ for item in action(self, m):
yield item
- self.pos = self.m.end()
+ self.pos = m.end()
if new_state is not None:
# state transition
if isinstance(new_state, tuple):