home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 November / CPNL0711.ISO / communic / email / Evolution-2.8.2-2.msi / Data1.cab / ruby.lang < prev    next >
Extensible Markup Language  |  2007-03-07  |  4KB  |  152 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE language SYSTEM "language.dtd">
  3. <language _name="Ruby" version="1.0" _section="Scripts" mimetypes="application/x-ruby;text/x-ruby">
  4.  
  5.     <escape-char>\</escape-char>
  6.  
  7.     <keyword-list _name="Attribute Definitions" style="Others" case-sensitive="TRUE">
  8.         <keyword>attr</keyword>
  9.         <keyword>attr_writer</keyword>
  10.         <keyword>attr_reader</keyword>
  11.         <keyword>attr_accessor</keyword>
  12.     </keyword-list>
  13.  
  14.     <keyword-list _name="Definitions" style="Keyword" case-sensitive="TRUE">
  15.         <keyword>alias</keyword>
  16.         <keyword>class</keyword>
  17.         <keyword>module</keyword>
  18.         <keyword>def</keyword>
  19.         <keyword>undef</keyword>
  20.     </keyword-list>
  21.  
  22.     <keyword-list _name="Pseudo Variables" style="Data Type" case-sensitive="TRUE">
  23.         <keyword>self</keyword>
  24.         <keyword>super</keyword>
  25.         <keyword>nil</keyword>
  26.         <keyword>false</keyword>
  27.         <keyword>true</keyword>
  28.         <keyword>__FILE__</keyword>
  29.         <keyword>__LINE__</keyword>
  30.     </keyword-list>
  31.  
  32.     <keyword-list _name = "Module Handlers" style = "Preprocessor">
  33.         <keyword>require</keyword>
  34.         <keyword>include</keyword>
  35.         <keyword>load</keyword>
  36.     </keyword-list>
  37.  
  38.     <keyword-list _name = "Keywords" style = "Keyword" case-sensitive="TRUE">
  39.         <keyword>BEGIN</keyword>
  40.         <keyword>END</keyword>
  41.         <keyword>and</keyword>
  42.         <keyword>begin</keyword>
  43.         <keyword>break</keyword>
  44.         <keyword>case</keyword>
  45.         <keyword>catch</keyword>
  46.         <keyword>defined?</keyword>
  47.         <keyword>do</keyword>
  48.         <keyword>else</keyword>
  49.         <keyword>elsif</keyword>
  50.         <keyword>end</keyword>
  51.         <keyword>ensure</keyword>
  52.         <keyword>for</keyword>
  53.         <keyword>if</keyword>
  54.         <keyword>in</keyword>
  55.         <keyword>next</keyword>
  56.         <keyword>not</keyword>
  57.         <keyword>or</keyword>
  58.         <keyword>private</keyword>
  59.         <keyword>protected</keyword>
  60.         <keyword>public</keyword>
  61.         <keyword>redo</keyword>
  62.         <keyword>rescue</keyword>
  63.         <keyword>retry</keyword>
  64.         <keyword>return</keyword>
  65.         <keyword>then</keyword>
  66.         <keyword>throw</keyword>
  67.         <keyword>unless</keyword>
  68.         <keyword>until</keyword>
  69.         <keyword>when</keyword>
  70.         <keyword>while</keyword>
  71.         <keyword>yield</keyword>
  72.     </keyword-list>
  73.  
  74.     <keyword-list _name = "Builtins" style = "Others" case-sensitive="TRUE">
  75.         <keyword>Array</keyword>
  76.         <keyword>Bignum</keyword>
  77.         <keyword>Binding</keyword>
  78.         <keyword>Class</keyword>
  79.         <keyword>Continuation</keyword>
  80.         <keyword>Dir</keyword>
  81.         <keyword>Exception</keyword>
  82.         <keyword>FalseClass</keyword>
  83.         <keyword>File::Stat</keyword>
  84.         <keyword>File</keyword>
  85.         <keyword>Fixnum</keyword>
  86.         <keyword>Fload</keyword>
  87.         <keyword>Hash</keyword>
  88.         <keyword>Integer</keyword>
  89.         <keyword>IO</keyword>
  90.         <keyword>MatchData</keyword>
  91.         <keyword>Method</keyword>
  92.         <keyword>Module</keyword>
  93.         <keyword>NilClass</keyword>
  94.         <keyword>Numeric</keyword>
  95.         <keyword>Object</keyword>
  96.         <keyword>Proc</keyword>
  97.         <keyword>Range</keyword>
  98.         <keyword>Regexp</keyword>
  99.         <keyword>String</keyword>
  100.         <keyword>Struct::Tms</keyword>
  101.         <keyword>Symbol</keyword>
  102.         <keyword>Symbol</keyword>
  103.         <keyword>ThreadGroup</keyword>
  104.         <keyword>Thread</keyword>
  105.         <keyword>Time</keyword>
  106.         <keyword>TrueClass</keyword>
  107.     </keyword-list>
  108.  
  109.     <pattern-item _name = "Class Variables" style = "Data Type">
  110.         <regex>@@[a-zA-Z_][a-zA-Z0-9_]*</regex>
  111.     </pattern-item>
  112.  
  113.     <pattern-item _name = "Instance Variables" style = "Data Type">
  114.         <regex>@[a-zA-Z_][a-zA-Z0-9_]*</regex>
  115.     </pattern-item>
  116.  
  117.     <pattern-item _name = "Global Variables" style = "Data Type">
  118.         <regex>\$[a-zA-Z_][a-zA-Z0-9_]*</regex>
  119.     </pattern-item>
  120.  
  121.     <pattern-item _name = "Symbols" style = "Data Type">
  122.                 <regex>:[a-zA-Z0-9_]+</regex>
  123.         </pattern-item>
  124.  
  125.     <pattern-item _name = "RegExp Variables" style = "Decimal">
  126.         <regex>\$[1-9][0-9]*</regex>
  127.     </pattern-item>
  128.  
  129.     <pattern-item _name = "Constants" style = "Decimal">
  130.         <regex>\b[A-Z_][A-Za-z0-9_:]*\b</regex>
  131.     </pattern-item>
  132.  
  133.     <string _name = "Double Quoted String" style = "String" end-at-line-end = "TRUE">
  134.         <start-regex>"</start-regex>
  135.         <end-regex>"</end-regex>
  136.     </string>
  137.  
  138.     <string _name = "Single Quoted String" style = "String" end-at-line-end = "TRUE">
  139.         <start-regex>'</start-regex>
  140.         <end-regex>'</end-regex>
  141.     </string>
  142.  
  143.     <line-comment _name = "Line Comment" style= "Comment">
  144.         <start-regex>#</start-regex>
  145.     </line-comment>
  146.  
  147.     <block-comment _name="Multiline Comment" style="Comment">
  148.         <start-regex>^=begin</start-regex>
  149.         <end-regex>^=end</end-regex>
  150.     </block-comment>
  151. </language>
  152.