Glimmer::Highlight::GoLexer
Inherits Glimmer::Highlight::SimpleRegexLexer < Glimmer::Highlight::Lexer < Reference < Object
GoLexer provides syntax highlighting for Go code.
Constants
BUILTINS = ["append", "cap", "close", "complex", "copy", "delete", "imag", "len", "make", "new", "panic", "print", "println", "real", "recover"] of ::String
KEYWORD_CONSTANTS = ["true", "false", "nil", "iota"] of ::String
KEYWORD_TYPES = ["bool", "byte", "complex64", "complex128", "error", "float32", "float64", "int", "int8", "int16", "int32", "int64", "rune", "string", "uint", "uint8", "uint16", "uint32", "uint64", "uintptr"] of ::String
KEYWORDS = ["break", "case", "chan", "const", "continue", "default", "defer", "else", "fallthrough", "for", "func", "go", "goto", "if", "import", "interface", "map", "package", "range", "return", "select", "struct", "switch", "type", "var"] of ::String
Constructors
new
Source