Codulle - L'explorateur de code sources
Informations fichier
Nom du fichier : ruby.phpTaille du fichier : 3 Ko (146 lignes)
Language : PHP
span style="color: #808080; font-style: italic;">/************************************************************************************* * ruby.php * -------- * Author: Amit Gupta (http://blog.igeek.info/) * Copyright: (c) 2005 Amit Gupta (http://blog.igeek.info/) * Release Version: 1.0.7.5 * CVS Revision Version: $Revision: 1.3 $ * Date Started: 2005/09/05 * Last Modified: $Date: 2005/10/22 07:52:59 $ * * Ruby language file for GeSHi * * CHANGES * ------- * 2005/09/05 (1.0.0) * - First Release * * TODO (updated 2005/09/05) * ------------------------- * * Add the remaining keywords, methods, classes as per * v1.8.2(as listed in the online manual) * ************************************************************************************* * * This file is part of GeSHi. * * GeSHi is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * GeSHi is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with GeSHi; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ************************************************************************************/'LANG_NAME' => 'Ruby', 'COMMENT_SINGLE'"#"), 'COMMENT_MULTI''CASE_KEYWORDS''QUOTEMARKS''"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS''alias', 'and', 'begin', 'break', 'case', 'class', 'def', 'defined', 'do', 'else', 'elsif', 'end', 'ensure', 'for', 'if', 'in', 'module', 'while', 'next', 'not', 'or', 'redo', 'rescue', 'yield', 'retry', 'super', 'then', 'undef', 'unless', 'until', 'when', 'BEGIN', 'END', 'include''__FILE__', '__LINE__', 'false', 'nil', 'self', 'true', 'return''Array', 'Float', 'Integer', 'String', 'at_exit', 'autoload', 'binding', 'caller', 'catch', 'chop', 'chop!', 'chomp', 'chomp!', 'eval', 'exec', 'exit', 'exit!', 'fail', 'fork', 'format', 'gets', 'global_variables', 'gsub', 'gsub!', 'iterator?', 'lambda', 'load', 'local_variables', 'loop', 'open', 'p', 'print', 'printf', 'proc', 'putc', 'puts', 'raise', 'rand', 'readline', 'readlines', 'require', 'select', 'sleep', 'split', 'sprintf', 'srand', 'sub', 'sub!', 'syscall', 'system', 'test', 'trace_var', 'trap', 'untrace_var' ) ), 'SYMBOLS''(', ')', '[', ']', '{', '}', '@', '%', '&', '*', '|', '/', '<', '>', '+', '-', '=>', '=>' ), 'CASE_SENSITIVE''STYLES''KEYWORDS''color:#9966CC; font-weight:bold;', 2 => 'color:#0000FF; font-weight:bold;', 3 => 'color:#CC0066; font-weight:bold;' ), 'COMMENTS''color:#008000; font-style:italic;' ), 'ESCAPE_CHAR''color:#000099;' ), 'BRACKETS''color:#006600; font-weight:bold;' ), 'STRINGS''color:#996600;' ), 'NUMBERS''color:#006666;' ), 'METHODS''color:#9900CC;' ), 'SYMBOLS''color:#006600; font-weight:bold;' ), 'REGEXPS''SCRIPT''', 1 => '', 2 => '', ) ), 'URLS''', 2 => '', 3 => '' ), 'OOLANG''OBJECT_SPLITTERS''.' ), 'REGEXPS''STRICT_MODE_APPLIES''SCRIPT_DELIMITERS''<%' => '%>' ) ), 'HIGHLIGHT_STRICT_BLOCK'