Commits

Georg Brandl committed 03e8ce5

Fix find_error behavior for non-RegexLexer lexers.

  • Participants
  • Parent commits c115d12

Comments (0)

Files changed (1)

File scripts/find_error.py

             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)):
             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