elvish/pkg/edit/highlight/theme.go
2021-01-27 01:30:25 +00:00

38 lines
716 B
Go

package highlight
import "src.elv.sh/pkg/ui"
var stylingFor = map[string]ui.Styling{
barewordRegion: nil,
singleQuotedRegion: ui.FgYellow,
doubleQuotedRegion: ui.FgYellow,
variableRegion: ui.FgMagenta,
wildcardRegion: nil,
tildeRegion: nil,
commentRegion: ui.FgCyan,
">": ui.FgGreen,
">>": ui.FgGreen,
"<": ui.FgGreen,
"?>": ui.FgGreen,
"|": ui.FgGreen,
"?(": ui.Bold,
"(": ui.Bold,
")": ui.Bold,
"[": ui.Bold,
"]": ui.Bold,
"{": ui.Bold,
"}": ui.Bold,
"&": ui.Bold,
commandRegion: ui.FgGreen,
keywordRegion: ui.FgYellow,
errorRegion: ui.Stylings(ui.FgBrightWhite, ui.BgRed),
}
var (
stylingForGoodCommand = ui.FgGreen
stylingForBadCommand = ui.FgRed
)