gilo/internal/editor/highlight/fn.go

13 lines
201 B
Go

package highlight
import "timshome.page/gilo/internal/terminal"
func SyntaxToColor(hl int) string {
switch hl {
case Number:
return terminal.FGRed
default:
return terminal.DefaultFGColor
}
}