Ruby
%term% ruby -rdebug %1/%2
%term% %1%2
1
0
8
text/x-rb
multilinestring
"""
"""
string
string
"
\("\|\n\)
string
singlestring
'
\('\|\n\)
char_string
comment
#
\n
comment
comment2
=begin
=end
comment
global_var
\$[a-z|A-Z|_]+
variable
instance_var
\@[a-z|A-Z_]+
variable
modulhander
\b\require\b
preprocessor
func_class
\b\(def\|class\|return\)\b
keyword
keywords
\b\(BEGIN\|END\|ensure\|nil\|self\|when\|false\|not\|super\|while\|alias\|defined\|for\|or\|then\|yield\|and\|do\|if\|redo\|true\|begin\|else\|in\|rescue\|undef\|break\|elseif\|module\|retry\|unless\|case\|end\|next\|return\|until\)\b
keyword
keywords2
\b\(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\|select\|sleep\|split\|sprintf\|srand\|sub\|sub!\|syscall\|system\|test\|trace_var\|trap\|untrace_var\)\b
keyword
glob_cons
\b\(TRUE\|FALSE\|NIL\|STDIN\|STDOUT\|STDERR\|ENV\|ARGV\|ARGF\|DATA\|VERSION\|RUBY_RELEASE_DATE\|RUBY_PLATFORM\)\b
data_type
operators
\(::\|/\|\*\|<<\|>>\|<\|>\|=\|==\|!=\|<=\|>=\|%\|+\|-\||\|&\|\*\*\|!\|~\|===\|!~\|=~\|&&\|<=>\)
operator
whole_numbers1
\b[0-9]\b
decimal
whole_numbers2
\b[1-9][0-9]*\b
decimal
whole_numbers3
\b[1-9]_[0-9]*\b
decimal
float_numbers1
\.\b[0-9]+\b
decimal
float_numbers2
\b[0-9]*\.\W
decimal
float_numbers3
\.\b[0-9]*e[1-9]*\b
decimal
hex_numbers
\b0x[0-9a-fA-F]+\b
hexidecimal
oct_numbers
\b0[0-7]+\b
octal
bin_numbers
\b0b[01]+\b
octal
punctuation
\((\|)\|{\|}\|[\|\]\|\.\)
punctuation