cleanup
This commit is contained in:
parent
180f4933d9
commit
0ad4a0db09
@ -205,7 +205,6 @@ func parseSegs(sourcePath string) ([]*Seg, string) {
|
||||
|
||||
func chromaFormat(code, filePath string) string {
|
||||
|
||||
|
||||
lexer := lexers.Get(filePath)
|
||||
if lexer == nil {
|
||||
lexer = lexers.Fallback
|
||||
@ -217,8 +216,6 @@ func chromaFormat(code, filePath string) string {
|
||||
|
||||
lexer = chroma.Coalesce(lexer)
|
||||
|
||||
fmt.Printf("%s - %s\n", filePath, lexer.Config().Name)
|
||||
|
||||
style := styles.Get("swapoff")
|
||||
if style == nil {
|
||||
style = styles.Fallback
|
||||
@ -230,7 +227,6 @@ func chromaFormat(code, filePath string) string {
|
||||
err = formatter.Format(buf, style, iterator)
|
||||
check(err)
|
||||
return buf.String()
|
||||
|
||||
}
|
||||
|
||||
func parseAndRenderSegs(sourcePath string) ([]*Seg, string) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user