Commits

Andriy Kornatskyy  committed af0c31d

Tokenizer match must consume further current possition.

  • Participants
  • Parent commits a72c4c9

Comments (0)

Files changed (1)

File src/wheezy/template/lexer.py

                 m = regex.match(source, pos, end)
                 if m:
                     npos, token, value = tokenizer(m)
+                    assert npos > pos
                     append((lineno, token, value))
                     lineno += source[pos:npos].count('\n')
                     pos = npos