Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeKeyword = Type(iota) TypeString TypeRune TypeInt TypeComment TypeTrailingSpaces )
Variables ¶
View Source
var DefaultTheme = Theme{ TypeKeyword: Attr{Fg: tcell.ColorYellow, Bg: tcell.ColorReset}, TypeString: Attr{Fg: tcell.ColorRed, Bg: tcell.ColorReset}, TypeRune: Attr{Fg: tcell.ColorYellow, Bg: tcell.ColorReset}, TypeInt: Attr{Fg: tcell.ColorReset, Bg: tcell.ColorReset}, TypeComment: Attr{Fg: tcell.ColorPurple, Bg: tcell.ColorReset}, TypeTrailingSpaces: Attr{Fg: tcell.ColorReset, Bg: tcell.ColorYellow}, }
Functions ¶
This section is empty.
Types ¶
type Language ¶
Language is a set of tab configurations and syntaxes.
func NewLanguage ¶
NewLanguage finds a language from given extension. It will return "unknown" language if it didn't find language for the extension.
type Parser ¶
type Parser struct { Matches []Match // contains filtered or unexported fields }
Parser is syntax parser.
func (*Parser) ClearFrom ¶
ClearFrom clears it's match from pt. If there is an overwrap with a match, it will clear that match too.
Click to show internal directories.
Click to hide internal directories.