Haxe mode
1
import one.two.Three;
2
3
"test") (
4
class Foo<T> extends Three
5
{
6
public function new()
7
{
8
noFoo = 12;
9
}
10
11
public static inline function doFoo(obj:{k:Int, l:Float}):Int
12
{
13
for(i in 0...10)
14
{
15
obj.k++;
16
trace(i);
17
var var1 = new Array();
18
if(var1.length > 1)
19
throw "Error";
20
}
21
// The following line should not be colored, the variable is scoped out
22
var1;
23
/* Multi line
24
* Comment test
25
*/
26
return obj.k;
27
}
28
private function bar():Void
29
{
30
31
var t1:String = "1.21";
32
Hxml mode:
8
1
-cp test
2
-js path/to/file.js
3
#-remap nme:flash
4
--next
5
-D source-map-content
6
-cmd 'test'
7
-lib lime
8
MIME types defined: text/x-haxe, text/x-hxml
.