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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE language SYSTEM "language.dtd">
  3. <language _name="Nemerle" version="1.0" _section="Sources" mimetypes="text/x-nemerle">
  4.     
  5.     <escape-char>\</escape-char>
  6.  
  7.     <pattern-item _name = "Character Constant" style = "String" end-at-line-end = "TRUE">
  8.         <regex>'(\\)?.'</regex>
  9.     </pattern-item>
  10.     
  11.     <string _name = "String" style = "String" end-at-line-end = "TRUE">
  12.         <start-regex>"</start-regex>
  13.         <end-regex>"</end-regex>
  14.     </string>
  15.  
  16.     <line-comment _name = "Line Comment" style= "Comment">
  17.         <start-regex>//</start-regex>
  18.     </line-comment>
  19.  
  20.     <block-comment _name = "Block Comment" style = "Comment">
  21.         <start-regex>/\*</start-regex>
  22.             <end-regex>\*/</end-regex>
  23.     </block-comment>
  24.     
  25.     <keyword-list _name = "Core Keywords" style = "Keyword" case-sensitive="TRUE">
  26.         <keyword>_</keyword>
  27.         <keyword>abstract</keyword>
  28.         <keyword>and</keyword>
  29.         <keyword>array</keyword>
  30.         <keyword>as</keyword>
  31.         <keyword>base</keyword>
  32.         <keyword>catch</keyword>
  33.         <keyword>class</keyword>
  34.         <keyword>def</keyword>
  35.         <keyword>extends</keyword>
  36.         <keyword>extern</keyword>
  37.         <keyword>false</keyword>
  38.         <keyword>finally</keyword>
  39.         <keyword>fun</keyword>
  40.         <keyword>implements</keyword>
  41.         <keyword>interface</keyword>
  42.         <keyword>internal</keyword>
  43.         <keyword>macro</keyword>
  44.         <keyword>match</keyword>
  45.         <keyword>module</keyword>
  46.         <keyword>mutable</keyword>
  47.         <keyword>namespace</keyword>
  48.         <keyword>new</keyword>
  49.         <keyword>null</keyword>
  50.         <keyword>out</keyword>
  51.         <keyword>override</keyword>
  52.         <keyword>params</keyword>
  53.         <keyword>private</keyword>
  54.         <keyword>protected</keyword>
  55.         <keyword>public</keyword>
  56.         <keyword>ref</keyword>
  57.         <keyword>sealed</keyword>
  58.         <keyword>static</keyword>
  59.         <keyword>struct</keyword>
  60.         <keyword>syntax</keyword>
  61.         <keyword>this</keyword>
  62.         <keyword>throw</keyword>
  63.         <keyword>true</keyword>
  64.         <keyword>try</keyword>
  65.         <keyword>type</keyword>
  66.         <keyword>typeof</keyword>
  67.         <keyword>using</keyword>
  68.         <keyword>variant</keyword>
  69.         <keyword>virtual</keyword>
  70.         <keyword>when</keyword>
  71.         <keyword>where</keyword>
  72.     </keyword-list>
  73.     
  74.     <keyword-list _name = "Keywords Defined by Macros" style = "Keyword" case-sensitive="TRUE">
  75.         <keyword>do</keyword> 
  76.         <keyword>while</keyword>
  77.         <keyword>for</keyword> 
  78.         <keyword>foreach</keyword>
  79.         <keyword>in</keyword>
  80.         <keyword>if</keyword>
  81.         <keyword>else</keyword>
  82.         <keyword>lock</keyword>
  83.         <keyword>repeat</keyword>
  84.         <keyword>until</keyword>
  85.         <keyword>unless</keyword>
  86.         <keyword>using</keyword>
  87.         <keyword>when</keyword>
  88.         <keyword>while</keyword>
  89.     </keyword-list>
  90.  
  91.     <pattern-item _name = "Floating Point Number" style = "Floating Point">
  92.         <regex>[0-9]*\.[0-9]+([eE][-+]?[0-9]+)?\b</regex>
  93.     </pattern-item>
  94.     
  95.     <pattern-item _name = "Decimal" style = "Decimal">
  96.         <regex>\b[0-9]+[Uu]?([Ll]|[Ss]|[Bb])?\b</regex>
  97.     </pattern-item>
  98.  
  99.     <pattern-item _name = "Binary Number" style = "Base-N Integer">
  100.         <regex>\b0[bB][01]+[Uu]?([Ll]|[Ss]|[Bb])?\b</regex>
  101.     </pattern-item>
  102.  
  103.     <pattern-item _name = "Octal Number" style = "Base-N Integer">
  104.         <regex>\b0[oO][0-7]+[Uu]?([Ll]|[Ss]|[Bb])?\b</regex>
  105.     </pattern-item>
  106.  
  107.     <pattern-item _name = "Hex Number" style = "Base-N Integer">
  108.         <regex>\b0[xX][0-9a-fA-F]+[Uu]?([Ll]|[Ss]|[Bb])?\b</regex>
  109.     </pattern-item>
  110.  
  111.     <keyword-list _name = "Primitives" style = "Data Type" case-sensitive="TRUE">
  112.         <keyword>bool</keyword>
  113.         <keyword>byte</keyword>
  114.         <keyword>char</keyword>
  115.         <keyword>decimal</keyword>
  116.         <keyword>double</keyword>
  117.         <keyword>float</keyword>
  118.         <keyword>int</keyword>
  119.         <keyword>long</keyword>
  120.         <keyword>object</keyword>
  121.         <keyword>sbyte</keyword>
  122.         <keyword>short</keyword>
  123.         <keyword>string</keyword>
  124.         <keyword>uint</keyword>
  125.         <keyword>ulong</keyword>
  126.         <keyword>ushort</keyword>
  127.         <keyword>void</keyword>        
  128.     </keyword-list>
  129.     
  130.     <keyword-list _name = "Core Types" style = "Data Type" case-sensitive="TRUE">
  131.         <keyword>list</keyword>
  132.     </keyword-list>
  133.  
  134. </language>
  135.