2003-05-15 02:30:02 +04:00
#Ruby syntax file derived from perl syntax by Marco Ciampa <ciampix@libero.it>
2003-05-16 13:35:51 +04:00
#alpha version 0.2 16/05/2003
2003-05-15 02:30:02 +04:00
context default
#Bang path
keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/ruby brightcyan black
keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/ruby brightcyan black
keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/ruby brightcyan black
keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/ruby brightcyan black
keyword whole linestart #!\[\s\]/bin/ruby brightcyan black
2010-09-13 10:54:14 +04:00
# Symbols :bla-bla
keyword whole \:\{ABCDEFGHIJKLMNOPQRSTUVWXYZ_\-abcdefghijklmnopqrstuvwxyz\}\[\?\-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\] white
2003-05-15 02:30:02 +04:00
#Operators
keyword > yellow
keyword < yellow
keyword - yellow
keyword \+ yellow
keyword \* yellow
keyword / yellow
keyword % yellow
keyword = yellow
keyword \+= yellow
keyword -= yellow
keyword == yellow
keyword != yellow
keyword === yellow
keyword <=> yellow
keyword ! yellow
keyword ~ yellow
keyword =~ yellow
keyword & yellow
keyword | yellow
keyword .. yellow
#System variables
2010-09-12 21:57:40 +04:00
# hack for regexps
keyword $/ yellow
2003-05-16 13:35:51 +04:00
keyword $\{!@&\+`'=~/\\,.;<>_\*"$:F?\} red
2003-05-15 02:30:02 +04:00
keyword $\{\0123456789\} red
keyword $-+ red
2003-05-16 13:35:51 +04:00
keyword whole $defout red
keyword whole $DEBUG red
keyword whole $F red
keyword whole $FILENAME red
keyword whole $LOAD_PATH red
keyword whole $SAFE red
keyword whole $VERBOSE red
keyword whole __FILE__ red
keyword whole __LINE__ red
keyword whole BEGIN red
keyword whole END red
keyword whole DATA red
keyword whole RUBY_PLATFORM red
keyword whole RUBY_RELEASE_DATE red
keyword whole RUBY_VERSION red
keyword whole $stdin red
keyword whole STDIN red
keyword whole $stdout red
keyword whole STDOUT red
keyword whole $stderr red
keyword whole STDERR red
keyword whole argv red
keyword whole ARGV red
keyword whole ARGF red
keyword whole env red
keyword whole ENV red
2003-05-15 02:30:02 +04:00
2010-03-05 21:37:48 +03:00
#Braces &
2003-05-15 02:30:02 +04:00
keyword { brightcyan
keyword } brightcyan
keyword ( brightcyan
keyword ) brightcyan
keyword [ brightcyan
keyword ] brightcyan
keyword , brightcyan
keyword : brightcyan
2003-05-16 13:35:51 +04:00
keyword whole false brightred
keyword whole FALSE brightred
keyword whole nil brightred
keyword whole NIL brightred
keyword whole true brightred
keyword whole TRUE brightred
2003-05-15 02:30:02 +04:00
#Variables
keyword wholeright $+ brightgreen
keyword wholeright @+ white
keyword \\" brightred
keyword \\' brightred
#Reserved words (see ruby manual)
2003-05-16 13:35:51 +04:00
keyword whole def magenta
2003-05-15 02:30:02 +04:00
keyword whole alias magenta
keyword whole and magenta
keyword whole begin magenta
keyword whole break magenta
keyword whole case magenta
keyword whole class magenta
keyword whole defined\? magenta
keyword whole do magenta
keyword whole else magenta
keyword whole elsif magenta
keyword whole end magenta
keyword whole ensure magenta
keyword whole for magenta
keyword whole if magenta
keyword whole in magenta
keyword whole module magenta
keyword whole next magenta
keyword whole not magenta
keyword whole or magenta
keyword whole redo magenta
keyword whole rescue magenta
keyword whole retry magenta
keyword whole return magenta
keyword whole self magenta
keyword whole super magenta
keyword whole then magenta
keyword whole undef magenta
keyword whole unless magenta
keyword whole until magenta
keyword whole when magenta
keyword whole while magenta
keyword whole yeld magenta
#First class methods
keyword whole new yellow
keyword whole inherited yellow
keyword whole superclass yellow
#Class module
2010-09-12 21:57:40 +04:00
# exclusion
keyword whole include\? green
2003-05-15 02:30:02 +04:00
keyword whole include magenta
keyword whole require magenta
2011-07-12 12:45:41 +04:00
keyword whole require_relative magenta
2003-05-15 02:30:02 +04:00
# keyword whole where magenta
#Class numeric
keyword whole abs red
keyword whole modulo red
keyword whole remainder red
#Class IO
2003-05-16 13:35:51 +04:00
keyword whole close yellow
2003-05-15 02:30:02 +04:00
keyword whole crypt yellow
keyword whole delete yellow
keyword whole each yellow
2003-05-16 13:35:51 +04:00
keyword whole gets yellow
2003-05-15 02:30:02 +04:00
keyword whole grep yellow
2003-05-16 13:35:51 +04:00
keyword whole inspect yellow
2003-05-15 02:30:02 +04:00
keyword whole join yellow
2003-05-16 13:35:51 +04:00
keyword whole sync yellow
2003-05-15 02:30:02 +04:00
#Class Array
keyword whole index yellow
keyword whole indexes yellow
keyword whole indices yellow
keyword whole size yellow
keyword whole pop yellow
keyword whole push yellow
keyword whole sort yellow
keyword whole shift yellow
keyword whole unshift yellow
#Math module
keyword whole Math::PI red
keyword whole Math::E red
keyword whole atan2 red
keyword whole cos red
keyword whole exp red
keyword whole frexp red
keyword whole ldexp red
keyword whole log red
keyword whole log10 red
keyword whole sin red
keyword whole sqrt red
keyword whole tan red
#Kernel module
keyword whole chomp yellow
keyword whole chomp! yellow
keyword whole chop yellow
keyword whole chop! yellow
keyword whole raise yellow
keyword whole fork yellow
keyword whole rand yellow
keyword whole srand yellow
2003-05-16 13:35:51 +04:00
keyword whole open yellow
2003-05-15 02:30:02 +04:00
keyword whole print yellow
2023-03-03 16:05:14 +03:00
keyword whole puts yellow
2003-05-15 02:30:02 +04:00
keyword whole printf yellow
keyword whole sprintf yellow
keyword whole exec yellow
keyword whole eval yellow
keyword whole exit yellow
keyword whole sleep yellow
#this works only with label EOF :-(
2010-03-05 21:37:48 +03:00
#context exclusive whole <<\[\s\]EOF EOF green
2003-05-15 02:30:02 +04:00
context # \n brown
spellcheck
2010-09-12 21:57:40 +04:00
2003-05-15 02:30:02 +04:00
context " " green
keyword \\" brightgreen
keyword \\\\ brightgreen
2010-09-12 21:57:40 +04:00
2003-05-15 02:30:02 +04:00
context ' ' brightgreen
keyword \\' green
keyword \\\\ green
context exclusive ` ` white black