]>
src.bluestatic.org Git - viewsvn.git/blob - includes/geshi/geshi/ruby.php
2 /*************************************************************************************
5 * Author: Amit Gupta (http://blog.igeek.info/)
6 * Copyright: (c) 2005 Amit Gupta (http://blog.igeek.info/)
7 * Release Version: 1.0.7.5
8 * CVS Revision Version: $Revision: 1.3 $
9 * Date Started: 2005/09/05
10 * Last Modified: $Date: 2005/10/22 07:52:59 $
12 * Ruby language file for GeSHi
19 * TODO (updated 2005/09/05)
20 * -------------------------
21 * * Add the remaining keywords, methods, classes as per
22 * v1.8.2(as listed in the online manual)
24 *************************************************************************************
26 * This file is part of GeSHi.
28 * GeSHi is free software; you can redistribute it and/or modify
29 * it under the terms of the GNU General Public License as published by
30 * the Free Software Foundation; either version 2 of the License, or
31 * (at your option) any later version.
33 * GeSHi is distributed in the hope that it will be useful,
34 * but WITHOUT ANY WARRANTY; without even the implied warranty of
35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36 * GNU General Public License for more details.
38 * You should have received a copy of the GNU General Public License
39 * along with GeSHi; if not, write to the Free Software
40 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
42 ************************************************************************************/
44 $language_data = array (
45 'LANG_NAME' => 'Ruby',
46 'COMMENT_SINGLE' => array(1 => "#"),
47 'COMMENT_MULTI' => array(),
48 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
49 'QUOTEMARKS' => array('"'),
50 'ESCAPE_CHAR' => '\\',
53 'alias', 'and', 'begin', 'break', 'case', 'class',
54 'def', 'defined', 'do', 'else', 'elsif', 'end',
55 'ensure', 'for', 'if', 'in', 'module', 'while',
56 'next', 'not', 'or', 'redo', 'rescue', 'yield',
57 'retry', 'super', 'then', 'undef', 'unless',
58 'until', 'when', 'BEGIN', 'END', 'include'
62 '__FILE__', '__LINE__', 'false', 'nil', 'self', 'true', 'return'
65 'Array', 'Float', 'Integer', 'String', 'at_exit',
66 'autoload', 'binding', 'caller', 'catch', 'chop', 'chop!',
67 'chomp', 'chomp!', 'eval', 'exec', 'exit', 'exit!', 'fail',
68 'fork', 'format', 'gets', 'global_variables', 'gsub', 'gsub!',
69 'iterator?', 'lambda', 'load', 'local_variables', 'loop', 'open',
70 'p', 'print', 'printf', 'proc', 'putc', 'puts', 'raise',
71 'rand', 'readline', 'readlines', 'require', 'select', 'sleep',
72 'split', 'sprintf', 'srand', 'sub', 'sub!', 'syscall',
73 'system', 'test', 'trace_var', 'trap', 'untrace_var'
77 '(', ')', '[', ']', '{', '}', '@', '%', '&', '*', '|', '/', '<', '>',
78 '+', '-', '=>', '=>'
80 'CASE_SENSITIVE' => array(
81 GESHI_COMMENTS
=> false,
88 1 => 'color:#9966CC; font-weight:bold;',
89 2 => 'color:#0000FF; font-weight:bold;',
90 3 => 'color:#CC0066; font-weight:bold;'
93 1 => 'color:#008000; font-style:italic;'
95 'ESCAPE_CHAR' => array(
99 0 => 'color:#006600; font-weight:bold;'
102 0 => 'color:#996600;'
105 0 => 'color:#006666;'
108 1 => 'color:#9900CC;'
111 0 => 'color:#006600; font-weight:bold;'
127 'OBJECT_SPLITTERS' => array(
132 'STRICT_MODE_APPLIES' => GESHI_MAYBE
,
133 'SCRIPT_DELIMITERS' => array(
138 'HIGHLIGHT_STRICT_BLOCK' => array(