diff options
author | Georg Brandl <georg@python.org> | 2011-06-18 11:40:04 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-06-18 11:40:04 +0200 |
commit | e9d162a0a9156db681297fe1625d4cdbb3420641 (patch) | |
tree | 882e15b6c6ab59608d6dcd5e5de688b0996d4882 /scripts | |
parent | f4f58dba7a5f75e0eddc8a2e9b2c2376fd1fc05e (diff) | |
download | pygments-e9d162a0a9156db681297fe1625d4cdbb3420641.tar.gz |
Fix find_error behavior for non-RegexLexer lexers.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/find_error.py | 4 |
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 |