1 #Ruby syntax file derived from perl syntax by Marco Ciampa <ciampix@libero.it>
2 #alpha version 0.2 16/05/2003
8 keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/ruby brightcyan black
9 keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/ruby brightcyan black
10 keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/ruby brightcyan black
11 keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/ruby brightcyan black
12 keyword whole linestart #!\[\s\]/bin/ruby brightcyan black
39 #Please note that in regular expressions the final $/ is not correctly
40 #highlighted as a system variable. This is not right but I actually do
41 #not know any way to avoid it. Any idea is welcome.
43 keyword $\{!@&\+`'=~/\\,.;<>_\*"$:F?\} red
44 keyword $\{\0123456789\} red
47 keyword whole $defout red
48 keyword whole $DEBUG red
50 keyword whole $FILENAME red
51 keyword whole $LOAD_PATH red
52 keyword whole $SAFE red
53 keyword whole $VERBOSE red
54 keyword whole __FILE__ red
55 keyword whole __LINE__ red
56 keyword whole BEGIN red
58 keyword whole DATA red
59 keyword whole RUBY_PLATFORM red
60 keyword whole RUBY_RELEASE_DATE red
61 keyword whole RUBY_VERSION red
62 keyword whole $stdin red
63 keyword whole STDIN red
64 keyword whole $stdout red
65 keyword whole STDOUT red
66 keyword whole $stderr red
67 keyword whole STDERR red
68 keyword whole argv red
69 keyword whole ARGV red
70 keyword whole ARGF red
85 keyword whole false brightred
86 keyword whole FALSE brightred
87 keyword whole nil brightred
88 keyword whole NIL brightred
89 keyword whole true brightred
90 keyword whole TRUE brightred
94 keyword wholeright $+ brightgreen
95 keyword wholeright @+ white
99 #Reserved words (see ruby manual)
101 keyword whole def magenta
103 keyword whole alias magenta
104 keyword whole and magenta
105 keyword whole begin magenta
106 keyword whole break magenta
107 keyword whole case magenta
108 keyword whole class magenta
109 keyword whole defined\? magenta
110 keyword whole do magenta
111 keyword whole else magenta
112 keyword whole elsif magenta
113 keyword whole end magenta
114 keyword whole ensure magenta
115 keyword whole for magenta
116 keyword whole if magenta
117 keyword whole in magenta
118 keyword whole module magenta
119 keyword whole next magenta
120 keyword whole not magenta
121 keyword whole or magenta
122 keyword whole redo magenta
123 keyword whole rescue magenta
124 keyword whole retry magenta
125 keyword whole return magenta
126 keyword whole self magenta
127 keyword whole super magenta
128 keyword whole then magenta
129 keyword whole undef magenta
130 keyword whole unless magenta
131 keyword whole until magenta
132 keyword whole when magenta
133 keyword whole while magenta
134 keyword whole yeld magenta
138 keyword whole new yellow
139 keyword whole inherited yellow
140 keyword whole superclass yellow
144 keyword whole include magenta
145 keyword whole require magenta
146 # keyword whole where magenta
150 keyword whole abs red
151 keyword whole modulo red
152 keyword whole remainder red
156 keyword whole close yellow
157 keyword whole crypt yellow
158 keyword whole delete yellow
159 keyword whole each yellow
160 keyword whole gets yellow
161 keyword whole grep yellow
162 keyword whole inspect yellow
163 keyword whole join yellow
164 keyword whole sync yellow
168 keyword whole index yellow
169 keyword whole indexes yellow
170 keyword whole indices yellow
171 keyword whole size yellow
172 keyword whole pop yellow
173 keyword whole push yellow
174 keyword whole sort yellow
175 keyword whole shift yellow
176 keyword whole unshift yellow
180 keyword whole Math::PI red
181 keyword whole Math::E red
182 keyword whole atan2 red
183 keyword whole cos red
184 keyword whole exp red
185 keyword whole frexp red
186 keyword whole ldexp red
187 keyword whole log red
188 keyword whole log10 red
189 keyword whole sin red
190 keyword whole sqrt red
191 keyword whole tan red
195 keyword whole chomp yellow
196 keyword whole chomp! yellow
197 keyword whole chop yellow
198 keyword whole chop! yellow
199 keyword whole raise yellow
200 keyword whole fork yellow
201 keyword whole rand yellow
202 keyword whole srand yellow
203 keyword whole open yellow
204 keyword whole print yellow
205 keyword whole printf yellow
206 keyword whole sprintf yellow
207 keyword whole exec yellow
208 keyword whole eval yellow
209 keyword whole exit yellow
210 keyword whole sleep yellow
212 #this works only with label EOF :-(
213 #context exclusive whole <<\[\s\]EOF EOF green
218 keyword \\" brightgreen
219 keyword \\\\ brightgreen
220 context ' ' brightgreen
224 context exclusive ` ` white black