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
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
new
Source