diff options
author | gbrandl <devnull@localhost> | 2007-01-08 19:29:56 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-01-08 19:29:56 +0100 |
commit | 1377883d54889e42b5f85282ab321b6cfcbd304e (patch) | |
tree | b7a1cd5f265e832a86a0da326b6500dd803b1d9b /pygments/lexer.py | |
parent | 6342c41108da146a0bb14ecbf812a4ebcb27bec8 (diff) | |
download | pygments-1377883d54889e42b5f85282ab321b6cfcbd304e.tar.gz |
[svn] Fix #180.
Diffstat (limited to 'pygments/lexer.py')
-rw-r--r-- | pygments/lexer.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pygments/lexer.py b/pygments/lexer.py index 7e141887..3b48243a 100644 --- a/pygments/lexer.py +++ b/pygments/lexer.py @@ -590,3 +590,8 @@ def do_insertions(insertions, tokens): insleft = False break # not strictly necessary yield i, t, v[oldi:] + # leftover tokens + if insleft: + for item in itokens: + yield item + |