~ubuntu-branches/ubuntu/vivid/kate/vivid-proposed

« back to all changes in this revision

Viewing changes to part/syntax/data/haxe.xml

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-12-04 16:49:41 UTC
  • mfrom: (1.6.6)
  • Revision ID: package-import@ubuntu.com-20141204164941-l3qbvsly83hhlw2v
Tags: 4:14.11.97-0ubuntu1
* New upstream release
* Update build-deps and use pkg-kde v3 for Qt 5 build
* kate-data now kate5-data for co-installability

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE language SYSTEM "language.dtd">
3
 
<!--
4
 
  ========================================================================
5
 
 
6
 
  Haxe Language highlighting.
7
 
 
8
 
  ========================================================================
9
 
  
10
 
  Author: Chad Joan
11
 
  
12
 
  ========================================================================
13
 
-->
14
 
 
15
 
<language name="Haxe" section="Sources" extensions="*.hx;*.Hx;*.hX;*.HX;" mimetype="text/x-hxsrc" version="0.1" kateversion="3.1" casesensitive="true" author="Chad Joan" license="MIT">
16
 
  <highlighting>
17
 
    <list name="keywords">
18
 
    
19
 
      <item> break </item>
20
 
      
21
 
      <item> case </item>
22
 
      <item> cast </item>
23
 
      <item> catch </item>
24
 
      <item> class </item>
25
 
      <item> continue </item>
26
 
      
27
 
      <item> default </item>
28
 
 
29
 
      <item> else </item>
30
 
      <item> enum </item>
31
 
      <item> extends </item>
32
 
      
33
 
      <item> false </item>
34
 
      <item> for </item>
35
 
      <item> function </item>
36
 
      
37
 
      <item> if </item>
38
 
      <item> implements </item>
39
 
      <item> in </item>
40
 
      <item> inline </item>
41
 
      <item> interface </item>
42
 
      
43
 
      <item> new </item>
44
 
      <item> null </item>
45
 
      
46
 
      <item> override </item>
47
 
      
48
 
      <item> private </item>
49
 
      <item> public </item>
50
 
      
51
 
      <item> return </item>
52
 
      
53
 
      <item> static </item>
54
 
      <item> super </item>
55
 
      <item> switch </item>
56
 
      
57
 
      <item> this </item>
58
 
      <item> throw </item>
59
 
      <item> trace </item>
60
 
      <item> true </item>
61
 
      <item> try </item>
62
 
      <item> typedef </item>
63
 
      
64
 
      <item> untyped </item>
65
 
      
66
 
      <item> var </item>
67
 
      
68
 
      <item> while </item>
69
 
 
70
 
    </list>
71
 
 
72
 
    <list name="modules">
73
 
      <item> package </item>
74
 
      <item> import </item>
75
 
    </list>
76
 
 
77
 
    <list name="types">
78
 
      <item> Array </item>
79
 
      <item> Void </item>
80
 
      <item> Bool </item>
81
 
      <item> Int </item>
82
 
      <item> UInt </item>
83
 
      <item> Float </item>
84
 
      <item> Dynamic </item>
85
 
      <item> String </item>
86
 
      <item> List </item>
87
 
      <item> Error </item>
88
 
      <item> Unknown </item>
89
 
      <item> Type </item>
90
 
    </list>
91
 
 
92
 
    <contexts>
93
 
      <context attribute="Normal Text" lineEndContext="#stay" name="normal">
94
 
        <RegExpr attribute="Preprocessor" context="#pop" String="#if(\s+\w+)?" />
95
 
        <RegExpr attribute="Preprocessor" context="#pop" String="#(else|elseif|end|error)" />
96
 
 
97
 
        <keyword attribute="Keyword"        context="#stay"      String="keywords"/>
98
 
        <keyword attribute="Module"         context="ModuleName" String="modules"/>
99
 
        <keyword attribute="Type"           context="#stay"      String="types"/>
100
 
      
101
 
        <DetectIdentifier attribute="Normal Text"/>
102
 
 
103
 
        <HlCStringChar attribute="EscapeString" context="#pop"/>
104
 
 
105
 
        <DetectChar attribute="RawString" context="RawString"   char="'"/>
106
 
        <DetectChar attribute="String"    context="String"      char="&quot;"/>
107
 
 
108
 
        <Detect2Chars attribute="Comment" context="CommentLine"   char="/" char1="/"/>
109
 
        <Detect2Chars attribute="Comment" context="CommentBlock" char="/" char1="*" beginRegion="CommentBlock"/>
110
 
 
111
 
        <DetectChar attribute="Normal Text" context="#stay" char="{" beginRegion="BraceA" />
112
 
        <DetectChar attribute="Normal Text" context="#stay" char="}" endRegion="BraceA" />
113
 
 
114
 
        <!-- Match ... and .. before numbers are matched. -->
115
 
        <StringDetect attribute="Normal Text" context="#pop" String="..."/>
116
 
        <Detect2Chars attribute="Normal Text"   char="." char1="."/>
117
 
 
118
 
        <!-- Float -->
119
 
        <!-- Floats must be matched before Binary|Octal|Hex|Integer -->
120
 
        <!-- All floats except integers -->
121
 
        <RegExpr attribute="Float" context="#pop" String="[\d][\d]*(\.(?!\.)[\d]*([eE][-+]?[\d]+)?)"/>
122
 
        <RegExpr attribute="Float" context="#pop" String="\.[\d][\d]*([eE][-+]?[\d]+)?"/>
123
 
 
124
 
        <!-- Hex|Integer -->
125
 
        <RegExpr attribute="Hex"     context="#pop" String="0[xX][\da-fA-F]+"/>
126
 
        <RegExpr attribute="Integer" context="#pop" String="\d+"/>
127
 
      </context>
128
 
 
129
 
      <context attribute="Module Name" lineEndContext="#stay" name="ModuleName">
130
 
        <Detect2Chars attribute="Comment"     context="CommentLine"   char="/" char1="/"/>
131
 
        <Detect2Chars attribute="Comment"     context="CommentBlock" char="/" char1="*" beginRegion="CommentBlock"/>
132
 
        <RegExpr context="#pop" String="[^\s\w.:,]"/>
133
 
      </context>
134
 
 
135
 
      <!-- Strings -->
136
 
      <!-- '...' -->
137
 
      <context attribute="RawString" lineEndContext="#stay" name="RawString">
138
 
        <DetectChar attribute="RawString" context="#pop" char="'"/>
139
 
      </context>
140
 
      <!-- "..." -->
141
 
      <context attribute="String" lineEndContext="#stay" name="String">
142
 
        <Detect2Chars attribute="String" context="#stay" char="\" char1="&quot;"/>
143
 
        <DetectChar attribute="String" context="#pop" char="&quot;"/>
144
 
        <HlCStringChar attribute="EscapeSequence"/>
145
 
        <RegExpr attribute="EscapeSequence" context="#stay" String="\\(u[\da-fA-F]{4}|U[\da-fA-F]{8}|&amp;[a-zA-Z]\w+;)" />
146
 
      </context>
147
 
 
148
 
      <!-- Comments -->
149
 
      <context attribute="Comment" lineEndContext="#pop" name="CommentLine"/>
150
 
      <context attribute="Comment" lineEndContext="#stay" name="CommentBlock">
151
 
        <Detect2Chars attribute="Comment" context="#pop" char="*" char1="/" endRegion="CommentBlock"/>
152
 
      </context>
153
 
    </contexts>
154
 
    <itemDatas>
155
 
      <itemData name="Normal Text"    defStyleNum="dsNormal"/>
156
 
      <itemData name="Keyword"        defStyleNum="dsKeyword"/>
157
 
      <itemData name="Type"           defStyleNum="dsDataType"/>
158
 
      <itemData name="Integer"        defStyleNum="dsDecVal"/>
159
 
      <itemData name="Hex"            defStyleNum="dsBaseN"/>
160
 
      <itemData name="Float"          defStyleNum="dsFloat"/>
161
 
 
162
 
      <itemData name="Module"         defStyleNum="dsKeyword"  color="#0000ff" selColor="#ffffff"/>
163
 
      <itemData name="Module Name"    defStyleNum="dsNormal"  color="#0000ff" selColor="#ffffff"/>
164
 
 
165
 
      <itemData name="EscapeSequence" defStyleNum="dsString" color="#00aa88" selColor="#ff0000"/>
166
 
      <itemData name="String"         defStyleNum="dsString"/>
167
 
      <itemData name="RawString"      defStyleNum="dsString"/>
168
 
 
169
 
      <itemData name="Comment"        defStyleNum="dsComment"/>
170
 
      
171
 
      <itemData name="Preprocessor"   defStyleNum="dsOthers"/>
172
 
    </itemDatas>
173
 
  </highlighting>
174
 
  <general>
175
 
    <comments>
176
 
      <comment name="singleLine" start="//"/>
177
 
      <comment name="multiLine" start="/*" end="*/" />
178
 
    </comments>
179
 
    <keywords casesensitive="true"/>
180
 
  </general>
181
 
</language>