Glimmer::Highlight::RubyLexer
Inherits Glimmer::Highlight::SimpleRegexLexer < Glimmer::Highlight::Lexer < Reference < Object
RubyLexer provides syntax highlighting for Ruby code.
Constants
BUILTINS = ["require", "require_relative", "load", "include", "extend", "prepend", "attr_reader", "attr_writer", "attr_accessor", "private", "protected", "public", "module_function", "raise", "fail", "throw", "catch", "block_given?", "iterator?", "loop", "open", "puts", "print", "printf", "p", "pp", "gets", "readline", "chomp", "chomp!", "chop", "chop!", "gsub", "gsub!", "sub", "sub!", "scan", "split", "strip", "strip!", "lstrip", "lstrip!", "rstrip", "rstrip!", "downcase", "downcase!", "upcase", "upcase!", "capitalize", "capitalize!", "swapcase", "swapcase!", "tr", "tr!", "tr_s", "tr_s!", "delete", "delete!", "squeeze", "squeeze!", "count", "index", "rindex", "include?", "start_with?", "end_with?", "empty?", "length", "size", "bytesize", "encoding", "force_encoding", "bytes", "chars", "lines", "each", "each_line", "each_byte", "each_char", "each_with_index", "map", "collect", "select", "find_all", "reject", "partition", "group_by", "sort", "sort_by", "max", "min", "minmax", "min_by", "max_by", "all?", "any?", "none?", "one?", "count", "inject", "reduce", "zip", "flatten", "flatten!", "compact", "compact!", "uniq", "uniq!", "reverse", "reverse!", "rotate", "rotate!", "shuffle", "shuffle!", "sample", "cycle", "repeat", "take", "drop", "take_while", "drop_while", "first", "last", "push", "pop", "shift", "unshift", "concat", "join", "reverse_each", "each_index", "delete", "delete_at", "delete_if", "keep_if", "clear", "fill", "replace", "insert", "values_at", "fetch", "key?", "has_key?", "member?", "value?", "has_value?", "keys", "values", "shift", "invert", "update", "merge", "merge!", "replace", "default", "default=", "default_proc", "default_proc=", "rehash", "to_hash", "to_h", "store", "assoc", "rassoc", "flatten"] of ::String
KEYWORD_CONSTANTS = ["true", "false", "nil"] of ::String
KEYWORD_TYPES = ["Array", "Bignum", "Binding", "Class", "Comparable", "Complex", "Continuation", "Dir", "Encoding", "Enumerable", "Enumerator", "Errno", "Exception", "FalseClass", "File", "FileTest", "Fixnum", "Float", "GC", "Hash", "IO", "Integer", "Kernel", "MatchData", "Method", "Module", "NilClass", "Numeric", "Object", "ObjectSpace", "Proc", "Process", "Random", "Range", "Rational", "Regexp", "Signal", "String", "Struct", "Symbol", "Thread", "ThreadGroup", "Time", "TrueClass", "UnboundMethod"] of ::String
KEYWORDS = ["alias", "and", "begin", "break", "case", "class", "def", "defined?", "do", "else", "elsif", "end", "ensure", "false", "for", "if", "in", "module", "next", "nil", "not", "or", "redo", "rescue", "retry", "return", "self", "super", "then", "true", "undef", "unless", "until", "when", "while", "yield", "__LINE__", "__FILE__", "__ENCODING__", "__END__"] of ::String
Constructors
new
Source