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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE language SYSTEM "language.dtd">
  3. <!--
  4.     D Language specification
  5.  
  6.     Reference:
  7.         http://www.digitalmars.com/d/lex.html
  8. -->
  9.  
  10. <language _name="D" version="1.0" _section="Sources" 
  11.            mimetypes="text/x-dsrc">
  12.     
  13.     <escape-char>\</escape-char>
  14.  
  15.     <line-comment _name="Line Comment" style="Comment">
  16.         <start-regex>//</start-regex>
  17.     </line-comment>
  18.  
  19.     <block-comment _name="Block Comment" style="Comment">
  20.         <start-regex>/\*</start-regex>
  21.         <end-regex>\*/</end-regex>
  22.     </block-comment>
  23.  
  24.     <block-comment _name="Nested Comment" style="Comment">
  25.         <start-regex>/\+</start-regex>
  26.         <end-regex>\+/</end-regex>
  27.     </block-comment>
  28.  
  29.     <string _name="Grave Literal" style="String" end-at-line-end="false">
  30.         <start-regex>`</start-regex>
  31.         <end-regex>`</end-regex>
  32.     </string>
  33.  
  34.     <string _name="String Literal" style="String" end-at-line-end="false">
  35.         <start-regex>"</start-regex>
  36.         <end-regex>"</end-regex>
  37.     </string>
  38.  
  39.     <string _name="Char Literal" style="String" end-at-line-end="true">
  40.         <start-regex>'</start-regex>
  41.         <end-regex>'</end-regex>
  42.     </string>
  43.  
  44.     <keyword-list _name="Keywords" style="Keyword" case-sensitive="true">
  45.         <keyword>abstract</keyword>
  46.         <keyword>alias</keyword>
  47.         <keyword>align</keyword>
  48.         <keyword>asm</keyword>
  49.         <keyword>assert</keyword>
  50.         <keyword>body</keyword>
  51.         <keyword>break</keyword>
  52.         <keyword>case</keyword>
  53.         <keyword>cast</keyword>
  54.         <keyword>catch</keyword>
  55.         <keyword>continue</keyword>
  56.         <keyword>debug</keyword>
  57.         <keyword>default</keyword>
  58.         <keyword>delegate</keyword>
  59.         <keyword>delete</keyword>
  60.         <keyword>deprecated</keyword>
  61.         <keyword>do</keyword>
  62.         <keyword>else</keyword>
  63.         <keyword>false</keyword>
  64.         <keyword>final</keyword>
  65.         <keyword>finally</keyword>
  66.         <keyword>for</keyword>
  67.         <keyword>foreach</keyword>
  68.         <keyword>function</keyword>
  69.         <keyword>goto</keyword>
  70.         <keyword>if</keyword>
  71.         <keyword>import</keyword>
  72.         <keyword>in</keyword>
  73.         <keyword>inout</keyword>
  74.         <keyword>is</keyword>
  75.         <keyword>mixin</keyword>
  76.         <keyword>new</keyword>
  77.         <keyword>out</keyword>
  78.         <keyword>override</keyword>
  79.         <keyword>pragma</keyword>
  80.         <keyword>private</keyword>
  81.         <keyword>protected</keyword>
  82.         <keyword>public</keyword>
  83.         <keyword>return</keyword>
  84.         <keyword>scope</keyword>
  85.         <keyword>super</keyword>
  86.         <keyword>switch</keyword>
  87.         <keyword>synchronized</keyword>
  88.         <keyword>this</keyword>
  89.         <keyword>throw</keyword>
  90.         <keyword>true</keyword>
  91.         <keyword>try</keyword>
  92.         <keyword>typeid</keyword>
  93.         <keyword>typeof</keyword>
  94.         <keyword>unittest</keyword>
  95.         <keyword>version</keyword>
  96.         <keyword>while</keyword>
  97.         <keyword>with</keyword>
  98.     </keyword-list>
  99.  
  100.     <keyword-list _name="Types" style="Data Type" case-sensitive="true">
  101.         <keyword>auto</keyword>
  102.         <keyword>bool</keyword>
  103.         <keyword>byte</keyword>
  104.         <keyword>cdouble</keyword>
  105.         <keyword>cent</keyword>
  106.         <keyword>cfloat</keyword>
  107.         <keyword>char</keyword>
  108.         <keyword>class</keyword>
  109.         <keyword>const</keyword>
  110.         <keyword>creal</keyword>
  111.         <keyword>dchar</keyword>
  112.         <keyword>double</keyword>
  113.         <keyword>enum</keyword>
  114.         <keyword>export</keyword>
  115.         <keyword>extern</keyword>
  116.         <keyword>float</keyword>
  117.         <keyword>idouble</keyword>
  118.         <keyword>ifloat</keyword>
  119.         <keyword>int</keyword>
  120.         <keyword>interface</keyword>
  121.         <keyword>invariant</keyword>
  122.         <keyword>ireal</keyword>
  123.         <keyword>long</keyword>
  124.         <keyword>module</keyword>
  125.         <keyword>null</keyword>
  126.         <keyword>package</keyword>
  127.         <keyword>real</keyword>
  128.         <keyword>short</keyword>
  129.         <keyword>static</keyword>
  130.         <keyword>struct</keyword>
  131.         <keyword>template</keyword>
  132.         <keyword>typedef</keyword>
  133.         <keyword>ubyte</keyword>
  134.         <keyword>ucent</keyword>
  135.         <keyword>uint</keyword>
  136.         <keyword>ulong</keyword>
  137.         <keyword>union</keyword>
  138.         <keyword>ushort</keyword>
  139.         <keyword>void</keyword>
  140.         <keyword>volatile</keyword>
  141.         <keyword>wchar</keyword>
  142.     </keyword-list>
  143.  
  144.     <pattern-item _name="Binary Number" style="Base-N Integer">
  145.         <regex>\b0[bB][01_]*\b</regex>
  146.     </pattern-item>
  147.  
  148.     <pattern-item _name="Decimal" style="Decimal">
  149.         <regex>\b([1-9][0-9_]*|0)([Uu]([Ll]|LL|ll)?|([Ll]|LL|ll)[Uu]?)?\b</regex>
  150.     </pattern-item>
  151.  
  152.     <pattern-item _name="Floating Point Number" style="Floating Point">
  153.         <regex>\b([0-9_]+[Ee][-]?[0-9_]+|([0-9_]*\.[0-9_]+|[0-9_]+\.)([Ee][-]?[0-9_]+)?)[fFLi]?</regex>
  154.     </pattern-item>
  155.  
  156.     <pattern-item _name="Octal Number" style="Base-N Integer">
  157.         <regex>\b0[0-7_]+([Uu]([Ll]|LL|ll)?|([Ll]|LL|ll)[Uu]?)?\b</regex>
  158.     </pattern-item>
  159.  
  160.     <pattern-item _name="Hex Number" style="Base-N Integer">
  161.         <regex>\b0[xX][0-9a-fA-F_]+([Uu]([Ll]|LL|ll)?|([Ll]|LL|ll)[Uu]?)?\b</regex>
  162.     </pattern-item>
  163.  
  164.     <keyword-list _name="Special Tokens" style="Preprocessor" case-sensitive="true">
  165.         <keyword>#line</keyword>
  166.         <keyword>__FILE__</keyword>
  167.         <keyword>__LINE__</keyword>
  168.         <keyword>__DATE__</keyword>
  169.         <keyword>__TIME__</keyword>
  170.         <keyword>__TIMESTAMP__</keyword>
  171.     </keyword-list>
  172. </language>
  173.