mirror of
https://github.com/cheat/cheat.git
synced 2025-09-01 17:48:30 +02:00
chore: updates chroma
dependency
This commit is contained in:
1
vendor/github.com/alecthomas/chroma/regexp.go
generated
vendored
1
vendor/github.com/alecthomas/chroma/regexp.go
generated
vendored
@ -34,7 +34,6 @@ func (e EmitterFunc) Emit(groups []string, lexer Lexer) Iterator { return e(grou
|
||||
func ByGroups(emitters ...Emitter) Emitter {
|
||||
return EmitterFunc(func(groups []string, lexer Lexer) Iterator {
|
||||
iterators := make([]Iterator, 0, len(groups)-1)
|
||||
// NOTE: If this panics, there is a mismatch with groups
|
||||
if len(emitters) != len(groups)-1 {
|
||||
iterators = append(iterators, Error.Emit(groups, lexer))
|
||||
// panic(errors.Errorf("number of groups %q does not match number of emitters %v", groups, emitters))
|
||||
|
Reference in New Issue
Block a user