ruby.php

gehe zur Dokumentation dieser Datei
00001 <?php
00002 /*************************************************************************************
00003  * ruby.php
00004  * --------
00005  * Author: Moises Deniz
00006  * Copyright: (c) 2007 Moises Deniz
00007  * Release Version: 1.0.7.20
00008  * Date Started: 2007/03/21
00009  *
00010  * Ruby language file for GeSHi
00011  *
00012  *************************************************************************************
00013  *
00014  *   This file is part of GeSHi.
00015  *
00016  *   GeSHi is free software; you can redistribute it and/or modify
00017  *   it under the terms of the GNU General Public License as published by
00018  *   the Free Software Foundation; either version 2 of the License, or
00019  *   (at your option) any later version.
00020  *
00021  *   GeSHi is distributed in the hope that it will be useful,
00022  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00023  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00024  *   GNU General Public License for more details.
00025  *
00026  *   You should have received a copy of the GNU General Public License
00027  *   along with GeSHi; if not, write to the Free Software
00028  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00029  *
00030  ************************************************************************************/
00031 
00032 $language_data = array (
00033     'LANG_NAME' => 'Ruby',
00034     'COMMENT_SINGLE' => array(1 => "#"),
00035     'COMMENT_MULTI' => array("=begin" => "=end"),
00036     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
00037     'QUOTEMARKS' => array('"', '`','\''),
00038     'ESCAPE_CHAR' => '\\',
00039     'KEYWORDS' => array(
00040         1 => array(
00041                 'alias', 'and', 'begin', 'break', 'case', 'class',
00042                 'def', 'defined', 'do', 'else', 'elsif', 'end',
00043                 'ensure', 'for', 'if', 'in', 'module', 'while',
00044                 'next', 'not', 'or', 'redo', 'rescue', 'yield',
00045                 'retry', 'super', 'then', 'undef', 'unless',
00046                 'until', 'when', 'BEGIN', 'END', 'include'
00047             ),
00048         2 => array(
00049                 '__FILE__', '__LINE__', 'false', 'nil', 'self', 'true',
00050                 'return'
00051             ),
00052         3 => array(
00053                 'Array', 'Float', 'Integer', 'String', 'at_exit',
00054                 'autoload', 'binding', 'caller', 'catch', 'chop', 'chop!',
00055                 'chomp', 'chomp!', 'eval', 'exec', 'exit', 'exit!', 'fail',
00056                 'fork', 'format', 'gets', 'global_variables', 'gsub', 'gsub!',
00057                 'iterator?', 'lambda', 'load', 'local_variables', 'loop',
00058                 'open', 'p', 'print', 'printf', 'proc', 'putc', 'puts',
00059                 'raise', 'rand', 'readline', 'readlines', 'require', 'select',
00060                 'sleep', 'split', 'sprintf', 'srand', 'sub', 'sub!', 'syscall',
00061                 'system', 'trace_var', 'trap', 'untrace_var'
00062             ),
00063         4 => array(
00064                 'Abbrev', 'ArgumentError', 'Base64', 'Benchmark',
00065                 'Benchmark::Tms', 'Bignum', 'Binding', 'CGI', 'CGI::Cookie',
00066                 'CGI::HtmlExtension', 'CGI::QueryExtension',
00067                 'CGI::Session', 'CGI::Session::FileStore',
00068                 'CGI::Session::MemoryStore', 'Class', 'Comparable', 'Complex',
00069                 'ConditionVariable', 'Continuation', 'Data',
00070                 'Date', 'DateTime', 'Delegator', 'Dir', 'EOFError', 'ERB',
00071                 'ERB::Util', 'Enumerable', 'Enumerable::Enumerator', 'Errno',
00072                 'Exception', 'FalseClass', 'File',
00073                 'File::Constants', 'File::Stat', 'FileTest', 'FileUtils',
00074                 'FileUtils::DryRun', 'FileUtils::NoWrite',
00075                 'FileUtils::StreamUtils_', 'FileUtils::Verbose', 'Find',
00076                 'Fixnum', 'FloatDomainError', 'Forwardable', 'GC', 'Generator',
00077                 'Hash', 'IO', 'IOError', 'Iconv', 'Iconv::BrokenLibrary',
00078                 'Iconv::Failure', 'Iconv::IllegalSequence',
00079                 'Iconv::InvalidCharacter', 'Iconv::InvalidEncoding',
00080                 'Iconv::OutOfRange', 'IndexError', 'Interrupt', 'Kernel',
00081                 'LoadError', 'LocalJumpError', 'Logger', 'Logger::Application',
00082                 'Logger::Error', 'Logger::Formatter', 'Logger::LogDevice',
00083                 'Logger::LogDevice::LogDeviceMutex', 'Logger::Severity',
00084                 'Logger::ShiftingError', 'Marshal', 'MatchData',
00085                 'Math', 'Matrix', 'Method', 'Module', 'Mutex', 'NameError',
00086                 'NameError::message', 'NilClass', 'NoMemoryError',
00087                 'NoMethodError', 'NotImplementedError', 'Numeric', 'Object',
00088                 'ObjectSpace', 'Observable', 'PStore', 'PStore::Error',
00089                 'Pathname', 'Precision', 'Proc', 'Process', 'Process::GID',
00090                 'Process::Status', 'Process::Sys', 'Process::UID', 'Queue',
00091                 'Range', 'RangeError', 'Rational', 'Regexp', 'RegexpError',
00092                 'RuntimeError', 'ScriptError', 'SecurityError', 'Set',
00093                 'Shellwords', 'Signal', 'SignalException', 'SimpleDelegator',
00094                 'SingleForwardable', 'Singleton', 'SingletonClassMethods',
00095                 'SizedQueue', 'SortedSet', 'StandardError', 'StringIO',
00096                 'StringScanner', 'StringScanner::Error', 'Struct', 'Symbol',
00097                 'SyncEnumerator', 'SyntaxError', 'SystemCallError',
00098                 'SystemExit', 'SystemStackError', 'Tempfile',
00099                 'Test::Unit::TestCase', 'Test::Unit', 'Test', 'Thread',
00100                 'ThreadError', 'ThreadGroup',
00101                 'ThreadsWait', 'Time', 'TrueClass', 'TypeError', 'URI',
00102                 'URI::BadURIError', 'URI::Error', 'URI::Escape', 'URI::FTP',
00103                 'URI::Generic', 'URI::HTTP', 'URI::HTTPS',
00104                 'URI::InvalidComponentError', 'URI::InvalidURIError',
00105                 'URI::LDAP', 'URI::MailTo', 'URI::REGEXP',
00106                 'URI::REGEXP::PATTERN', 'UnboundMethod', 'Vector', 'YAML',
00107                 'ZeroDivisionError', 'Zlib',
00108                 'Zlib::BufError', 'Zlib::DataError', 'Zlib::Deflate',
00109                 'Zlib::Error', 'Zlib::GzipFile', 'Zlib::GzipFile::CRCError',
00110                 'Zlib::GzipFile::Error', 'Zlib::GzipFile::LengthError',
00111                 'Zlib::GzipFile::NoFooter', 'Zlib::GzipReader',
00112                 'Zlib::GzipWriter', 'Zlib::Inflate', 'Zlib::MemError',
00113                 'Zlib::NeedDict', 'Zlib::StreamEnd', 'Zlib::StreamError',
00114                 'Zlib::VersionError',
00115                 'Zlib::ZStream',
00116                 'Enumerable',
00117                 'HTML::Selector', 'HashWithIndifferentAccess', 'Inflector',
00118                 'Inflector::Inflections', 'Mime', 'Mime::Type',
00119                 'OCI8AutoRecover', 'Symbol', 'TimeZone', 'XmlSimple'
00120             ),
00121         ),
00122     'SYMBOLS' => array(
00123         '(', ')', '[', ']', '{', '}', '%', '&', '*', '|', '/', '<', '>',
00124         '+', '-', '=&gt;', '=>', '<<'
00125         ),
00126     'CASE_SENSITIVE' => array(
00127         GESHI_COMMENTS => false,
00128         1 => false,
00129         2 => false,
00130         3 => false,
00131         4 => true,
00132         ),
00133     'STYLES' => array(
00134         'KEYWORDS' => array(
00135             1 => 'color:#9966CC; font-weight:bold;',
00136             2 => 'color:#0000FF; font-weight:bold;',
00137             3 => 'color:#CC0066; font-weight:bold;',
00138             4 => 'color:#CC00FF; font-weight:bold;',
00139             ),
00140         'COMMENTS' => array(
00141             1 => 'color:#008000; font-style:italic;',
00142                     'MULTI' => 'color:#000080; font-style:italic;'
00143             ),
00144         'ESCAPE_CHAR' => array(
00145             0 => 'color:#000099;'
00146             ),
00147         'BRACKETS' => array(
00148             0 => 'color:#006600; font-weight:bold;'
00149             ),
00150         'STRINGS' => array(
00151             0 => 'color:#996600;'
00152             ),
00153         'NUMBERS' => array(
00154             0 => 'color:#006666;'
00155             ),
00156         'METHODS' => array(
00157             1 => 'color:#9900CC;'
00158             ),
00159         'SYMBOLS' => array(
00160             0 => 'color:#006600; font-weight:bold;'
00161             ),
00162         'REGEXPS' => array(
00163             0 => 'color:#ff6633; font-weight:bold;',
00164             1 => 'color:#0066ff; font-weight:bold;',
00165             2 => 'color:#6666ff; font-weight:bold;',
00166             3 => 'color:#ff3333; font-weight:bold;'
00167             ),
00168         'SCRIPT' => array(
00169             0 => '',
00170             1 => '',
00171             2 => '',
00172             )
00173         ),
00174     'URLS' => array(
00175         1 => '',
00176         2 => '',
00177         3 => ''
00178         ),
00179     'OOLANG' => true,
00180     'OBJECT_SPLITTERS' => array(
00181         1 => '.'
00182         ),
00183     'REGEXPS' => array(
00184         0 => array(
00185             GESHI_SEARCH => "([[:space:]])(\\$[a-zA-Z_][a-zA-Z0-9_]*)",
00186             GESHI_REPLACE => '\\2',
00187             GESHI_MODIFIERS => '',
00188             GESHI_BEFORE => '\\1',
00189             GESHI_AFTER => ''
00190             ),
00191         1 => array(
00192             GESHI_SEARCH => "([[:space:]])(@[a-zA-Z_][a-zA-Z0-9_]*)",
00193             GESHI_REPLACE => '\\2',
00194             GESHI_MODIFIERS => '',
00195             GESHI_BEFORE => '\\1',
00196             GESHI_AFTER => ''
00197             ),
00198         2 => "([A-Z][a-zA-Z0-9_]*::)+[A-Z][a-zA-Z0-9_]*",
00199         3 => array(
00200             GESHI_SEARCH => "([[:space:]]|\[|\()(:[a-zA-Z_][a-zA-Z0-9_]*)",
00201             GESHI_REPLACE => '\\2',
00202             GESHI_MODIFIERS => '',
00203             GESHI_BEFORE => '\\1',
00204             GESHI_AFTER => ''
00205             )
00206         ),
00207     'STRICT_MODE_APPLIES' => GESHI_MAYBE,
00208     'SCRIPT_DELIMITERS' => array(
00209         0 => array(
00210             '<%' => '%>'
00211             )
00212         ),
00213     'HIGHLIGHT_STRICT_BLOCK' => array(
00214         0 => true,
00215         ),
00216     'TAB_WIDTH' => 2
00217 );
00218 
00219 ?>

Erzeugt am Thu May 14 00:55:48 2009 für OpenRat von  doxygen 1.5.8