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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE language SYSTEM "language.dtd">
  3. <language name="Boo" version="1.0" _section="Sources" mimetypes="text/x-boo">
  4.  
  5.     <escape-char>\</escape-char>
  6.  
  7.     <string name = "Multiline String" style = "String" end-at-line-end = "false">
  8.         <start-regex>"""</start-regex>
  9.         <end-regex>"""</end-regex>
  10.     </string>
  11.  
  12.     <string name = "Double Quoted String" style = "String" end-at-line-end = "true">
  13.         <start-regex>"</start-regex>
  14.         <end-regex>"</end-regex>
  15.     </string>
  16.  
  17.     <string name = "Single Quoted String" style = "String" end-at-line-end = "true">
  18.         <start-regex>'</start-regex>
  19.         <end-regex>'</end-regex>
  20.     </string>
  21.     
  22.     <line-comment name = "Line Comment" style= "Comment">
  23.         <start-regex>#</start-regex>
  24.     </line-comment>
  25.     
  26.     <line-comment name = "C Style Line Comment" style = "Comment">
  27.         <start-regex>//</start-regex>
  28.     </line-comment>
  29.     
  30.     <string name = "Regular Expression" style = "String" end-at-line-end = "true">
  31.         <start-regex>/[^/]</start-regex>
  32.         <end-regex>/</end-regex>
  33.     </string>
  34.     
  35.     <block-comment name = "Block Comment" style = "Comment">
  36.         <start-regex>/\*</start-regex>
  37.         <end-regex>\*/</end-regex>
  38.     </block-comment>
  39.  
  40.     <keyword-list name = "Namespace" style = "Preprocessor" case-sensitive = "true">
  41.         <keyword>import</keyword>
  42.         <keyword>from</keyword>
  43.         <keyword>as</keyword>
  44.         <keyword>namespace</keyword>
  45.     </keyword-list>
  46.  
  47.     <keyword-list _name = "Primitive" style = "Data Type" case-sensitive = "true">
  48.         <keyword>bool</keyword>
  49.         <keyword>byte</keyword>
  50.         <keyword>sbyte</keyword>
  51.         <keyword>double</keyword>
  52.         <keyword>decimal</keyword>
  53.         <keyword>single</keyword>
  54.         <keyword>short</keyword>
  55.         <keyword>ushort</keyword>
  56.         <keyword>int</keyword>
  57.         <keyword>char</keyword>
  58.         <keyword>uint</keyword>
  59.         <keyword>long</keyword>
  60.         <keyword>ulong</keyword>
  61.         <keyword>object</keyword>
  62.         <keyword>duck</keyword>        
  63.         <keyword>string</keyword>
  64.         <keyword>regex</keyword>
  65.         <keyword>date</keyword>
  66.         <keyword>timespan</keyword>
  67.     </keyword-list>
  68.  
  69.     <keyword-list name="Definition" style = "Keyword" case-sensitive="true">
  70.         <keyword>abstract</keyword>
  71.         <keyword>virtual</keyword>
  72.         <keyword>override</keyword>
  73.         <keyword>static</keyword>
  74.         <keyword>final</keyword>
  75.         <keyword>transient</keyword>
  76.         
  77.         <keyword>protected</keyword>
  78.         <keyword>private</keyword>
  79.         <keyword>public</keyword>
  80.         <keyword>internal</keyword>
  81.         <keyword>partial</keyword>
  82.         
  83.         <keyword>class</keyword>
  84.         <keyword>struct</keyword>
  85.         <keyword>interface</keyword>
  86.         <keyword>enum</keyword>
  87.         <keyword>callable</keyword>
  88.         <keyword>of</keyword>
  89.         
  90.         <keyword>def</keyword>
  91.         <keyword>constructor</keyword>
  92.         <keyword>destructor</keyword>
  93.         
  94.         <keyword>do</keyword>
  95.         <keyword>get</keyword>
  96.         <keyword>set</keyword>
  97.         <keyword>event</keyword>
  98.         
  99.         <keyword>return</keyword>
  100.         <keyword>yield</keyword>
  101.     </keyword-list>
  102.     
  103.     <pattern-item _name = "Number" style = "Decimal">
  104.         <regex>\b[0-9][0-9\.]*(m|ms|d|h|s|f|F|l|L)?\b</regex>
  105.     </pattern-item>
  106.  
  107.     <keyword-list _name = "Boolean" style = "Decimal" case-sensitive="true">
  108.         <keyword>true</keyword>
  109.         <keyword>false</keyword>
  110.     </keyword-list>
  111.     
  112.     <keyword-list _name = "Literals" style="Keyword" case-sensitive="true">    
  113.         <keyword>null</keyword>        
  114.         <keyword>self</keyword>
  115.         <keyword>super</keyword>
  116.     </keyword-list>
  117.  
  118.     <keyword-list _name = "Keywords" style = "Keyword" case-sensitive="true">
  119.         <keyword>and</keyword>
  120.         <keyword>break</keyword>
  121.         <keyword>cast</keyword>
  122.         <keyword>continue</keyword>
  123.         <keyword>elif</keyword>
  124.         <keyword>else</keyword>
  125.         <keyword>except</keyword>
  126.         <keyword>ensure</keyword>
  127.         <keyword>for</keyword>
  128.         <keyword>given</keyword>
  129.         <keyword>goto</keyword>
  130.         <keyword>if</keyword>
  131.         <keyword>in</keyword>
  132.         <keyword>is</keyword>
  133.         <keyword>isa</keyword>
  134.         <keyword>not</keyword>
  135.         <keyword>or</keyword>
  136.         <keyword>otherwise</keyword>
  137.         <keyword>pass</keyword>
  138.         <keyword>raise</keyword>
  139.         <keyword>try</keyword>
  140.         <keyword>unless</keyword>
  141.         <keyword>when</keyword>
  142.         <keyword>while</keyword>
  143.         <keyword>ref</keyword>
  144.     </keyword-list>
  145.  
  146.     <keyword-list name = "Builtins" style = "Others" case-sensitive="true">
  147.         <keyword>assert</keyword>
  148.         <keyword>__eval__</keyword>
  149.         <keyword>__switch__</keyword>
  150.         <keyword>enumerate</keyword>
  151.         <keyword>filter</keyword>
  152.         <keyword>len</keyword>
  153.         <keyword>typeof</keyword>
  154.         <keyword>map</keyword>
  155.         <keyword>max</keyword>
  156.         <keyword>min</keyword>
  157.         <keyword>property</keyword>
  158.         <keyword>using</keyword>
  159.         <keyword>getter</keyword>
  160.         <keyword>required</keyword>
  161.         <keyword>lock</keyword>
  162.         <keyword>range</keyword>
  163.         <keyword>zip</keyword>
  164.         <keyword>checked</keyword>
  165.         <keyword>unchecked</keyword>
  166.         <keyword>rawArrayIndexing</keyword>
  167.         <keyword>normalArrayIndexing</keyword>
  168.         <keyword>print</keyword>
  169.         <keyword>array</keyword>
  170.         <keyword>matrix</keyword>
  171.         <keyword>yieldAll</keyword>
  172.     </keyword-list>
  173. </language>
  174.