summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-06-18 11:40:04 +0200
committerGeorg Brandl <georg@python.org>2011-06-18 11:40:04 +0200
commite9d162a0a9156db681297fe1625d4cdbb3420641 (patch)
tree882e15b6c6ab59608d6dcd5e5de688b0996d4882 /scripts
parentf4f58dba7a5f75e0eddc8a2e9b2c2376fd1fc05e (diff)
downloadpygments-e9d162a0a9156db681297fe1625d4cdbb3420641.tar.gz
Fix find_error behavior for non-RegexLexer lexers.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/find_error.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/find_error.py b/scripts/find_error.py
index 593a6b5b..3b48a80a 100755
--- a/scripts/find_error.py
+++ b/scripts/find_error.py
@@ -120,7 +120,7 @@ def main(fn, lexer=None, options={}):
print 'Error parsing', fn, 'on line', lno
print 'Previous tokens' + (debug_lexer and ' and states' or '') + ':'
if showall:
- for tok, state in zip(tokens, states):
+ for tok, state in map(None, tokens, states):
show_token(tok, state)
else:
for i in range(len(tokens) - num, len(tokens)):
@@ -140,7 +140,7 @@ def main(fn, lexer=None, options={}):
else:
states.append(None)
if showall:
- for tok, state in zip(tokens, states):
+ for tok, state in map(None, tokens, states):
show_token(tok, state)
return 0