Warning, /frameworks/syntax-highlighting/data/syntax/haxe.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!DOCTYPE language>
0003 <!--
0004   ========================================================================
0005 
0006   Haxe Language highlighting.
0007 
0008   ========================================================================
0009   
0010   Author: Chad Joan
0011   
0012   ========================================================================
0013 -->
0014 
0015 <language name="Haxe" section="Sources" extensions="*.hx;*.Hx;*.hX;*.HX;" mimetype="text/x-hxsrc" version="6" kateversion="5.0" casesensitive="true" author="Chad Joan" license="MIT">
0016   <highlighting>
0017     <list name="keywords">
0018     
0019       <item>break</item>
0020       
0021       <item>case</item>
0022       <item>cast</item>
0023       <item>catch</item>
0024       <item>class</item>
0025       <item>continue</item>
0026       
0027       <item>default</item>
0028 
0029       <item>else</item>
0030       <item>enum</item>
0031       <item>extends</item>
0032       
0033       <item>false</item>
0034       <item>for</item>
0035       <item>function</item>
0036       
0037       <item>if</item>
0038       <item>implements</item>
0039       <item>in</item>
0040       <item>inline</item>
0041       <item>interface</item>
0042       
0043       <item>new</item>
0044       <item>null</item>
0045       
0046       <item>override</item>
0047       
0048       <item>private</item>
0049       <item>public</item>
0050       
0051       <item>return</item>
0052       
0053       <item>static</item>
0054       <item>super</item>
0055       <item>switch</item>
0056       
0057       <item>this</item>
0058       <item>throw</item>
0059       <item>trace</item>
0060       <item>true</item>
0061       <item>try</item>
0062       <item>typedef</item>
0063       
0064       <item>untyped</item>
0065       
0066       <item>var</item>
0067       
0068       <item>while</item>
0069 
0070     </list>
0071 
0072     <list name="modules">
0073       <item>package</item>
0074       <item>import</item>
0075     </list>
0076 
0077     <list name="types">
0078       <item>Array</item>
0079       <item>Void</item>
0080       <item>Bool</item>
0081       <item>Int</item>
0082       <item>UInt</item>
0083       <item>Float</item>
0084       <item>Dynamic</item>
0085       <item>String</item>
0086       <item>List</item>
0087       <item>Error</item>
0088       <item>Unknown</item>
0089       <item>Type</item>
0090     </list>
0091 
0092     <contexts>
0093       <context attribute="Normal Text" lineEndContext="#stay" name="normal">
0094         <RegExpr attribute="Preprocessor" context="#pop" String="#if(\s+\w+)?|#(else|elseif|end|error)" />
0095 
0096         <keyword attribute="Keyword"        context="#stay"      String="keywords"/>
0097         <keyword attribute="Module"         context="ModuleName" String="modules"/>
0098         <keyword attribute="Type"           context="#stay"      String="types"/>
0099       
0100         <DetectIdentifier attribute="Normal Text"/>
0101 
0102         <HlCStringChar attribute="EscapeSequence" context="#pop"/>
0103 
0104         <DetectChar attribute="RawString" context="RawString"   char="'"/>
0105         <DetectChar attribute="String"    context="String"      char="&quot;"/>
0106 
0107         <Detect2Chars attribute="Comment" context="CommentLine"   char="/" char1="/"/>
0108         <Detect2Chars attribute="Comment" context="CommentBlock" char="/" char1="*" beginRegion="CommentBlock"/>
0109 
0110         <DetectChar attribute="Normal Text" context="#stay" char="{" beginRegion="BraceA" />
0111         <DetectChar attribute="Normal Text" context="#stay" char="}" endRegion="BraceA" />
0112 
0113         <!-- Match ... and .. before numbers are matched. -->
0114         <StringDetect attribute="Normal Text" context="#pop" String="..."/>
0115         <Detect2Chars attribute="Normal Text"   char="." char1="."/>
0116 
0117         <!-- Float -->
0118         <!-- Floats must be matched before Binary|Octal|Hex|Integer -->
0119         <!-- All floats except integers -->
0120         <RegExpr attribute="Float" context="#pop" String="[\d][\d]*(\.(?!\.)[\d]*([eE][-+]?[\d]+)?)|\.[\d][\d]*([eE][-+]?[\d]+)?"/>
0121 
0122         <!-- Hex|Integer -->
0123         <RegExpr attribute="Hex"     context="#pop" String="0[xX][\da-fA-F]+"/>
0124         <RegExpr attribute="Integer" context="#pop" String="\d+"/>
0125       </context>
0126 
0127       <context attribute="Module Name" lineEndContext="#stay" name="ModuleName">
0128         <Detect2Chars attribute="Comment"     context="CommentLine"   char="/" char1="/"/>
0129         <Detect2Chars attribute="Comment"     context="CommentBlock" char="/" char1="*" beginRegion="CommentBlock"/>
0130         <RegExpr context="#pop" String="[^\s\w.:,]"/>
0131       </context>
0132 
0133       <!-- Strings -->
0134       <!-- '...' -->
0135       <context attribute="RawString" lineEndContext="#stay" name="RawString">
0136         <Detect2Chars attribute="RawString" context="#stay" char="\" char1="'"/>
0137         <DetectChar attribute="RawString" context="#pop" char="'"/>
0138         <HlCStringChar attribute="EscapeSequence"/>
0139         <RegExpr attribute="EscapeSequence" context="#stay" String="\\(u[\da-fA-F]{4}|U[\da-fA-F]{8}|&amp;[a-zA-Z]\w+;)" />
0140       </context>
0141       <!-- "..." -->
0142       <context attribute="String" lineEndContext="#stay" name="String">
0143         <Detect2Chars attribute="String" context="#stay" char="\" char1="&quot;"/>
0144         <DetectChar attribute="String" context="#pop" char="&quot;"/>
0145         <HlCStringChar attribute="EscapeSequence"/>
0146         <RegExpr attribute="EscapeSequence" context="#stay" String="\\(u[\da-fA-F]{4}|U[\da-fA-F]{8}|&amp;[a-zA-Z]\w+;)" />
0147       </context>
0148 
0149       <!-- Comments -->
0150       <context attribute="Comment" lineEndContext="#pop" name="CommentLine">
0151         <DetectSpaces />
0152         <IncludeRules context="##Comments"/>
0153       </context>
0154       <context attribute="Comment" lineEndContext="#stay" name="CommentBlock">
0155         <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="CommentBlock"/>
0156         <DetectSpaces />
0157         <IncludeRules context="##Comments"/>
0158       </context>
0159     </contexts>
0160     <itemDatas>
0161       <itemData name="Normal Text"    defStyleNum="dsNormal"/>
0162       <itemData name="Keyword"        defStyleNum="dsKeyword"/>
0163       <itemData name="Type"           defStyleNum="dsDataType"/>
0164       <itemData name="Integer"        defStyleNum="dsDecVal"/>
0165       <itemData name="Hex"            defStyleNum="dsBaseN"/>
0166       <itemData name="Float"          defStyleNum="dsFloat"/>
0167 
0168       <itemData name="Module"         defStyleNum="dsKeyword"  color="#0000ff" selColor="#ffffff"/>
0169       <itemData name="Module Name"    defStyleNum="dsNormal"  color="#0000ff" selColor="#ffffff"/>
0170 
0171       <itemData name="EscapeSequence" defStyleNum="dsString" color="#00aa88" selColor="#ff0000"/>
0172       <itemData name="String"         defStyleNum="dsString"/>
0173       <itemData name="RawString"      defStyleNum="dsString"/>
0174 
0175       <itemData name="Comment"        defStyleNum="dsComment"/>
0176       
0177       <itemData name="Preprocessor"   defStyleNum="dsOthers"/>
0178     </itemDatas>
0179   </highlighting>
0180   <general>
0181     <comments>
0182       <comment name="singleLine" start="//"/>
0183       <comment name="multiLine" start="/*" end="*/" region="CommentBlock"/>
0184     </comments>
0185     <keywords casesensitive="true"/>
0186   </general>
0187 </language>
0188 <!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->