40 'LANG_NAME' =>
'Ruby',
41 'COMMENT_SINGLE' => array(1 =>
"#"),
42 'COMMENT_MULTI' => array(
"=begin" =>
"=end"),
43 'COMMENT_REGEXP' => array(
45 4 =>
'/<<\s*?(\w+)\\n.*?\\n\\1(?![a-zA-Z0-9])/si',
48 'QUOTEMARKS' => array(
'"',
'`',
'\''),
49 'ESCAPE_CHAR' =>
'\\',
52 'alias',
'and',
'begin',
'break',
'case',
'class',
53 'def',
'defined',
'do',
'else',
'elsif',
'end',
54 'ensure',
'for',
'if',
'in',
'module',
'while',
55 'next',
'not',
'or',
'redo',
'rescue',
'yield',
56 'retry',
'super',
'then',
'undef',
'unless',
57 'until',
'when',
'include' 60 '__FILE__',
'__LINE__',
'false',
'nil',
'self',
'true',
64 'Array',
'Float',
'Integer',
'String',
'at_exit',
65 'autoload',
'binding',
'caller',
'catch',
'chop',
'chop!',
66 'chomp',
'chomp!',
'eval',
'exec',
'exit',
'exit!',
'fail',
67 'fork',
'format',
'gets',
'global_variables',
'gsub',
'gsub!',
68 'iterator?',
'lambda',
'load',
'local_variables',
'loop',
69 'open',
'p',
'print',
'printf',
'proc',
'putc',
'puts',
70 'raise',
'rand',
'readline',
'readlines',
'require',
'select',
71 'sleep',
'split',
'sprintf',
'srand',
'sub',
'sub!',
'syscall',
72 'system',
'trace_var',
'trap',
'untrace_var' 75 'Abbrev',
'ArgumentError',
'Base64',
'Benchmark',
76 'Benchmark::Tms',
'Bignum',
'Binding',
'CGI',
'CGI::Cookie',
77 'CGI::HtmlExtension',
'CGI::QueryExtension',
78 'CGI::Session',
'CGI::Session::FileStore',
79 'CGI::Session::MemoryStore',
'Class',
'Comparable',
'Complex',
80 'ConditionVariable',
'Continuation',
'Data',
81 'Date',
'DateTime',
'Delegator',
'Dir',
'EOFError',
'ERB',
82 'ERB::Util',
'Enumerable',
'Enumerable::Enumerator',
'Errno',
83 'Exception',
'FalseClass',
'File',
84 'File::Constants',
'File::Stat',
'FileTest',
'FileUtils',
85 'FileUtils::DryRun',
'FileUtils::NoWrite',
86 'FileUtils::StreamUtils_',
'FileUtils::Verbose',
'Find',
87 'Fixnum',
'FloatDomainError',
'Forwardable',
'GC',
'Generator',
88 'Hash',
'IO',
'IOError',
'Iconv',
'Iconv::BrokenLibrary',
89 'Iconv::Failure',
'Iconv::IllegalSequence',
90 'Iconv::InvalidCharacter',
'Iconv::InvalidEncoding',
91 'Iconv::OutOfRange',
'IndexError',
'Interrupt',
'Kernel',
92 'LoadError',
'LocalJumpError',
'Logger',
'Logger::Application',
93 'Logger::Error',
'Logger::Formatter',
'Logger::LogDevice',
94 'Logger::LogDevice::LogDeviceMutex',
'Logger::Severity',
95 'Logger::ShiftingError',
'Marshal',
'MatchData',
96 'Math',
'Matrix',
'Method',
'Module',
'Mutex',
'NameError',
97 'NameError::message',
'NilClass',
'NoMemoryError',
98 'NoMethodError',
'NotImplementedError',
'Numeric',
'Object',
99 'ObjectSpace',
'Observable',
'PStore',
'PStore::Error',
100 'Pathname',
'Precision',
'Proc',
'Process',
'Process::GID',
101 'Process::Status',
'Process::Sys',
'Process::UID',
'Queue',
102 'Range',
'RangeError',
'Rational',
'Regexp',
'RegexpError',
103 'RuntimeError',
'ScriptError',
'SecurityError',
'Set',
104 'Shellwords',
'Signal',
'SignalException',
'SimpleDelegator',
105 'SingleForwardable',
'Singleton',
'SingletonClassMethods',
106 'SizedQueue',
'SortedSet',
'StandardError',
'StringIO',
107 'StringScanner',
'StringScanner::Error',
'Struct',
'Symbol',
108 'SyncEnumerator',
'SyntaxError',
'SystemCallError',
109 'SystemExit',
'SystemStackError',
'Tempfile',
110 'Test::Unit::TestCase',
'Test::Unit',
'Test',
'Thread',
111 'ThreadError',
'ThreadGroup',
112 'ThreadsWait',
'Time',
'TrueClass',
'TypeError',
'URI',
113 'URI::BadURIError',
'URI::Error',
'URI::Escape',
'URI::FTP',
114 'URI::Generic',
'URI::HTTP',
'URI::HTTPS',
115 'URI::InvalidComponentError',
'URI::InvalidURIError',
116 'URI::LDAP',
'URI::MailTo',
'URI::REGEXP',
117 'URI::REGEXP::PATTERN',
'UnboundMethod',
'Vector',
'YAML',
118 'ZeroDivisionError',
'Zlib',
119 'Zlib::BufError',
'Zlib::DataError',
'Zlib::Deflate',
120 'Zlib::Error',
'Zlib::GzipFile',
'Zlib::GzipFile::CRCError',
121 'Zlib::GzipFile::Error',
'Zlib::GzipFile::LengthError',
122 'Zlib::GzipFile::NoFooter',
'Zlib::GzipReader',
123 'Zlib::GzipWriter',
'Zlib::Inflate',
'Zlib::MemError',
124 'Zlib::NeedDict',
'Zlib::StreamEnd',
'Zlib::StreamError',
125 'Zlib::VersionError',
127 'HTML::Selector',
'HashWithIndifferentAccess',
'Inflector',
128 'Inflector::Inflections',
'Mime',
'Mime::Type',
129 'OCI8AutoRecover',
'TimeZone',
'XmlSimple' 133 '(',
')',
'[',
']',
'{',
'}',
'%',
'&',
'*',
'|',
'/',
'<',
'>',
136 'CASE_SENSITIVE' => array(
145 1 =>
'color:#9966CC; font-weight:bold;',
146 2 =>
'color:#0000FF; font-weight:bold;',
147 3 =>
'color:#CC0066; font-weight:bold;',
148 4 =>
'color:#CC00FF; font-weight:bold;',
151 1 =>
'color:#008000; font-style:italic;',
152 4 =>
'color: #cc0000; font-style: italic;',
153 'MULTI' =>
'color:#000080; font-style:italic;' 155 'ESCAPE_CHAR' => array(
156 0 =>
'color:#000099;' 159 0 =>
'color:#006600; font-weight:bold;' 162 0 =>
'color:#996600;' 165 0 =>
'color:#006666;' 168 1 =>
'color:#9900CC;' 171 0 =>
'color:#006600; font-weight:bold;' 174 0 =>
'color:#ff6633; font-weight:bold;',
175 1 =>
'color:#0066ff; font-weight:bold;',
176 2 =>
'color:#6666ff; font-weight:bold;',
177 3 =>
'color:#ff3333; font-weight:bold;' 192 'OBJECT_SPLITTERS' => array(
197 GESHI_SEARCH =>
"([[:space:]])(\\$[a-zA-Z_][a-zA-Z0-9_]*)",
204 GESHI_SEARCH =>
"([[:space:]])(@[a-zA-Z_][a-zA-Z0-9_]*)",
210 2 =>
"([A-Z][a-zA-Z0-9_]*::)+[A-Z][a-zA-Z0-9_]*",
212 GESHI_SEARCH =>
"([[:space:]]|\[|\()(:[a-zA-Z_][a-zA-Z0-9_]*)",
220 'SCRIPT_DELIMITERS' => array(
225 'HIGHLIGHT_STRICT_BLOCK' => array(
const GESHI_MODIFIERS
The key of the regex array defining any modifiers to the regular expression.
const GESHI_BEFORE
The key of the regex array defining what bracket group in a matched search to put before the replacem...
const GESHI_COMMENTS
Used in language files to mark comments.
const GESHI_REPLACE
The key of the regex array defining what bracket group in a matched search to use as a replacement...
const GESHI_SEARCH
The key of the regex array defining what to search for.
const GESHI_MAYBE
Strict mode might apply, and can be enabled or disabled by GeSHi->enable_strict_mode().
const GESHI_CAPS_NO_CHANGE
Lowercase keywords found.
const GESHI_AFTER
The key of the regex array defining what bracket group in a matched search to put after the replaceme...