class

Glimmer::Highlight::CrystalLexer

Inherits Glimmer::Highlight::SimpleRegexLexer < Glimmer::Highlight::Lexer < Reference < Object

CrystalLexer provides syntax highlighting for Crystal code.

Constants

KEYWORD_CONSTANTS = ["true", "false", "nil"] of ::String
KEYWORD_TYPES = ["Bool", "Char", "Float32", "Float64", "Int128", "Int16", "Int32", "Int64", "Int8", "Pointer", "Proc", "String", "Symbol", "Tuple", "UInt128", "UInt16", "UInt32", "UInt64", "UInt8", "Void", "Array", "Hash", "Set", "Exception", "Regex"] of ::String
KEYWORDS = ["alias", "asm", "begin", "break", "case", "class", "def", "do", "else", "elsif", "end", "ensure", "enum", "extend", "for", "fun", "if", "in", "include", "instance_sizeof", "is_a?", "lib", "macro", "module", "next", "of", "out", "pointerof", "private", "protected", "require", "rescue", "respond_to?", "return", "select", "sizeof", "struct", "super", "then", "type", "typeof", "union", "unless", "until", "when", "while", "with", "yield"] of ::String

Constructors