Versions in this module Expand all Collapse all v1 v1.4.1 Jul 20, 2018 Changes in this version + var Groups map[string]Group + func MatchFiletype(ftdetect [2]*regexp.Regexp, filename string, firstLine []byte) bool + func ParseFtDetect(file *File) (r [2]*regexp.Regexp, err error) + func ResolveIncludes(def *Def, files []*File) + type Def struct + func ParseDef(f *File, header *Header) (s *Def, err error) + type File struct + FileType string + func ParseFile(input []byte) (f *File, err error) + type Group uint8 + func (g Group) String() string + type Header struct + FileType string + FtDetect [2]*regexp.Regexp + type Highlighter struct + Def *Def + func NewHighlighter(def *Def) *Highlighter + func (h *Highlighter) HighlightMatches(input LineStates, startline, endline int) + func (h *Highlighter) HighlightStates(input LineStates) + func (h *Highlighter) HighlightString(input string) []LineMatch + func (h *Highlighter) ReHighlightLine(input LineStates, lineN int) + func (h *Highlighter) ReHighlightStates(input LineStates, startline int) + type LineMatch map[int]Group + type LineStates interface + LineBytes func(n int) []byte + LinesNum func() int + SetMatch func(lineN int, m LineMatch) + SetState func(lineN int, s State) + State func(lineN int) State + type State *region