Documentation ¶
Index ¶
Constants ¶
View Source
const ( HlNormal uint8 = iota HlComment HlMlComment HlKeyword1 HlKeyword2 HlString HlNumber HlMatch )
View Source
const ( HL_HIGHLIGHT_NUMBERS = 1 << iota HL_HIGHLIGHT_STRINGS )
Variables ¶
View Source
var HLDB = []*EditorSyntax{
syntaxGo, syntaxLua, syntaxPython,
}
Functions ¶
func SyntaxToColor ¶
Types ¶
type EditorSyntax ¶
type EditorSyntax struct { Filetype string Filematch []string Keywords []string // single line comment section Scs string // multi line comment start pattern Mcs string // multi line comment end pattern Mce string // Bit field that contains Flags for whether to highlight numbers and // whether to highlight strings. Flags int // \t representation based of file syntax Tabstop int }
Click to show internal directories.
Click to hide internal directories.