1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-11-23 22:24:39 +02:00

Generalise and support 8, 256 and 16m colour terminals.

This commit is contained in:
Alec Thomas
2017-06-06 15:59:48 +10:00
parent dba8ec47d2
commit 5749aebe42
20 changed files with 845 additions and 98 deletions

View File

@@ -16,7 +16,7 @@ func (d *coalescer) Tokenise(options *TokeniseOptions, text string, out func(*To
if last == nil {
last = token
} else {
if last.Type == token.Type {
if last.Type == token.Type && len(last.Value) < 8192 {
last.Value += token.Value
} else {
out(last)