1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-07-01 00:35:06 +02:00

Clear background colour for TTY formatters.

This commit is contained in:
Alec Thomas
2019-10-15 21:01:41 +11:00
parent b44683eae8
commit 73d11b3c45
9 changed files with 70 additions and 53 deletions

View File

@ -255,7 +255,7 @@ func (l *LexerState) Get(key interface{}) interface{} {
}
// Iterator returns the next Token from the lexer.
func (l *LexerState) Iterator() Token {
func (l *LexerState) Iterator() Token { // nolint: gocognit
for l.Pos < len(l.Text) && len(l.Stack) > 0 {
// Exhaust the iterator stack, if any.
for len(l.iteratorStack) > 0 {