diff --git a/Test.hx b/Test.hx
index 8f5c5c5..42c306f 100644
--- a/Test.hx
+++ b/Test.hx
@@ -71,7 +71,8 @@ class Test {
test("var i=0; if( i++ > 0 ) i=3; i",1);
test("var a = 5/2; a",2.5);
test("{ x = 3; x; }", 3);
- test("{ x : 3, y : {} }.x",3);
+ test("{ x : 3, y : {} }.x", 3);
+ test("function bug(){ \n }\nbug().x", null);
trace("Done");
}
diff --git a/hscript.hxml b/hscript.hxml
index 33bc917..7027c2a 100644
--- a/hscript.hxml
+++ b/hscript.hxml
@@ -1,5 +1,5 @@
-# HScript
--swf9 hscript.swf
+-swf hscript.swf
+-swf-version 9
+-swf-header 800:600:30:FFFFFF
+--flash-strict
-main Test
--debug
-
diff --git a/hscript.hxp b/hscript.hxp
deleted file mode 100644
index d20eb74..0000000
--- a/hscript.hxp
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/hscript.hxproj b/hscript.hxproj
new file mode 100644
index 0000000..32c69f7
--- /dev/null
+++ b/hscript.hxproj
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/hscript/Parser.hx b/hscript/Parser.hx
index 72a6741..c4b596f 100644
--- a/hscript/Parser.hx
+++ b/hscript/Parser.hx
@@ -116,7 +116,7 @@ class Parser {
function isBlock(e) {
return switch( e ) {
- case EBlock(_): true;
+ case EBlock(_), EObject(_): true;
case EFunction(_,e,_): isBlock(e);
case EVar(_,e): e != null && isBlock(e);
case EIf(_,e1,e2): if( e2 != null ) isBlock(e2) else isBlock(e1);