<!DOCTYPE Highlight>
<Highlight wildcards="*.rb" name="Ruby">

 <Items>
  <Text                style=""  color="#000000" />
  <Keyword             style=""  color="#0f0ff0" />
  <Function            style=""  color="#808000" />
  <Class               style=""  color="#9000a0" />
  <FunctionDef         style="b" color="#e00f0f" />
  <ClassDef            style="b" color="#f00f0f" />
  <Number              style=""  color="#606060" />
  <RegExp              style=""  color="#c000b0"  bgcolor="#f5f5f5" />
  <Module              style=""  color="#f00f0f" />
  <String              style=""  color="#009000" />
  <Char                style=""  color="#ff00ff" />
  <Brace               style=""  color="#4040b0" />
  <Memo                style=""  color="#888888" />
  <EscapedChar         style=""  color="#F08050" />
 </Items>

 <Break>

  <normal>
   <citem item="" regexp="=begin"  mode="until, include" lineEndContent="doc" />
   <citem item="" regexp="&quot;&quot;&quot;"  mode="until, include" lineEndContent="multistring2" />
   <citem item="" regexp="$"  mode="until" />
  </normal>

  <doc>
   <citem item="" regexp="=end" mode="until, exclude, allowfull" />
   <citem item="" regexp="=end" lineEndContent="normal" />
  </doc>

  <multistring2>
   <citem item="" regexp="&quot;&quot;&quot;" mode="until, exclude, allowfull" />
   <citem item="" regexp="&quot;&quot;&quot;" lineEndContent="normal" />
  </multistring2>

 </Break>

 <Contents>

  <normal>
   <citem item="Text" regexp="\s+" />

   <citem item="Keyword" regexp="include\s" lineEndContent="module1" />
   <citem item="Keyword" regexp="require\s" lineEndContent="module1" />

   <citem item="Keyword" regexp="def\s" lineEndContent="funcdef" />
   <citem item="Keyword" regexp="class\s" lineEndContent="classdef" />

   <citem item="String"  regexp="&quot;" lineEndContent="string1" />
   <citem item="String"  regexp="'"      lineEndContent="string2" />
   <citem item="String"  regexp="%([Qq])?(\W).*\2" mode="minimal"  />
   <citem item="Text"  regexp="=begin"      lineEndContent="doc" />

   <citem item="Text"  regexp="/(?=.*/)"  lineEndContent="RegExp" />

   <citem item="Memo" regexp="\#.*" />

   <citem item="Keyword" regexp="\w+" keyword="BEGIN END alias and begin break case class def defined do else elsif end ensure false for if in module next nil not or redo rescue retry return self super then true endef unless until when while yield" caseSensitive="true"  lineEndContent="normal" />
   <citem item="Function" regexp="\w+" keyword="Array Float Integer String at_exit autoload binding caller catch chop chop chomp eval exec exit fail fork format gets gloval_variables 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 syscall system test trace_var trap untrace_var" caseSensitive="true" lineEndContent="normal" />
   <citem item="Class" regexp="\w+" keyword="Object Array Data Dir Exception Interrupt NotImplementError SignalException StandardError ArgumentError FloatDomainError IOError EOFError IndexError LoadError LocalJumpError NameError RuntimeError SecurityError SyntaxError SystemCallError Errno SystemStackError ThreadError TypeError ZeroDivisionError SystemExit fatal Hash IO File MatchingData Module Class Numeric Integer Bignum Fixnum Float Proc Range Regexp String Struct Time NilClass Pre-defined modules Comparable Enumerable Errno FileTest GC Kernel Marshal Match ObjectSpace Precision Process" caseSensitive="true" lineEndContent="normal" />

   <citem item="Number"   regexp="\d*\.\d+[eE]\+\d+[uUfFlL]?" lineEndContent="normal" />
   <citem item="Number"   regexp="\d*\.\d+[uUfFlL]?" lineEndContent="normal" />
   <citem item="Number"   regexp="0[xX][\da-fA-F]+[uUlL]?" lineEndContent="normal" />
   <citem item="Number"   regexp="0[0-7]+[uUlL]?" lineEndContent="normal" />
   <citem item="Number"   regexp="\d+[uUlL]?"  lineEndContent="normal" />

   <citem item="Brace" regexp="[\(\)\[\]{}\.\:]+" lineEndContent="normal" />

   <citem item="Text" regexp="[\w_]+" lineEndContent="normal" />
   <citem item="Text" regexp="\s+"    lineEndContent="normal" />
   <citem item="Text" regexp="\W"     lineEndContent="normal" />
  </normal>

  <RegExp>
   <citem item="RegExp" regexp="/" mode="until, exclude, allowfull" />
   <citem item="Text" regexp="/" lineEndContent="normal" />
  </RegExp>

  <doc>
   <citem item="Memo" regexp="=end" mode="until, exclude, allowfull" />
   <citem item="Text" regexp="=end" lineEndContent="normal" />
  </doc>

  <multistring2>
   <citem item="String" regexp="&quot;&quot;&quot;" mode="until, exclude, allowfull" />
   <citem item="String" regexp="&quot;&quot;&quot;" lineEndContent="normal" />
  </multistring2>

  <string1>
   <citem item="String"    regexp="[^&quot;\\]+" />
   <citem item="Char"      regexp="\\." />
   <citem item="String"    regexp="&quot;" lineEndContent="normal" />
  </string1>

  <string2>
   <citem item="String"    regexp="[^'\\]+" />
   <citem item="Char"      regexp="\\." />
   <citem item="String"    regexp="'" lineEndContent="normal" />
  </string2>

  <module1>
        <citem item="Module"  regexp=".*" lineEndContent="normal" />
  </module1>

  <funcdef>
        <citem item="FunctionDef"  regexp="[^ (]*" lineEndContent="normal" />
  </funcdef>

  <classdef>
        <citem item="ClassDef"  regexp="[^ :(]*" lineEndContent="normal" />
  </classdef>

  <module2>
        <citem item="Module"  regexp="import" mode="until, exclude" />
        <citem item="Keyword"  regexp="import" />
        <citem item="Module"  regexp=".*" lineEndContent="normal" />
  </module2>

 </Contents>

</Highlight>
