...
This commit is contained in:
parent
e774deaef1
commit
3236a42cb7
@ -164,7 +164,6 @@ func highlight_file(path string) (highlighted string, err error) {
|
|||||||
}
|
}
|
||||||
lexer = chroma.Coalesce(lexer)
|
lexer = chroma.Coalesce(lexer)
|
||||||
name := conf.Pygments_style
|
name := conf.Pygments_style
|
||||||
const DEFAULT_LIGHT_THEME = "borland"
|
|
||||||
var style *chroma.Style
|
var style *chroma.Style
|
||||||
if name == "default" {
|
if name == "default" {
|
||||||
style = DefaultStyle()
|
style = DefaultStyle()
|
||||||
@ -178,7 +177,7 @@ func highlight_file(path string) (highlighted string, err error) {
|
|||||||
style = styles.Get("github-dark")
|
style = styles.Get("github-dark")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
style = styles.Get(DEFAULT_LIGHT_THEME)
|
style = DefaultStyle()
|
||||||
}
|
}
|
||||||
if style == nil {
|
if style == nil {
|
||||||
style = styles.Fallback
|
style = styles.Fallback
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user