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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user