This commit is contained in:
Blake Bourque 2021-02-16 23:02:43 -05:00 committed by Blake Bourque
parent 180f4933d9
commit 0ad4a0db09

View File

@ -205,7 +205,6 @@ func parseSegs(sourcePath string) ([]*Seg, string) {
func chromaFormat(code, filePath string) string { func chromaFormat(code, filePath string) string {
lexer := lexers.Get(filePath) lexer := lexers.Get(filePath)
if lexer == nil { if lexer == nil {
lexer = lexers.Fallback lexer = lexers.Fallback
@ -217,8 +216,6 @@ func chromaFormat(code, filePath string) string {
lexer = chroma.Coalesce(lexer) lexer = chroma.Coalesce(lexer)
fmt.Printf("%s - %s\n", filePath, lexer.Config().Name)
style := styles.Get("swapoff") style := styles.Get("swapoff")
if style == nil { if style == nil {
style = styles.Fallback style = styles.Fallback
@ -230,7 +227,6 @@ func chromaFormat(code, filePath string) string {
err = formatter.Format(buf, style, iterator) err = formatter.Format(buf, style, iterator)
check(err) check(err)
return buf.String() return buf.String()
} }
func parseAndRenderSegs(sourcePath string) ([]*Seg, string) { func parseAndRenderSegs(sourcePath string) ([]*Seg, string) {