Skip to content

Commit 4b6b5e5

Browse files
committed
fixed parsing of if( x ) {} <a/>
1 parent caa5f0b commit 4b6b5e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hscript/Parser.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class Parser {
352352
var e = parseStructure(id);
353353
if( e == null )
354354
e = mk(EIdent(id));
355-
return parseExprNext(e);
355+
return isBlock(e) ? e : parseExprNext(e);
356356
case TConst(c):
357357
return parseExprNext(mk(EConst(c)));
358358
case TPOpen:

0 commit comments

Comments
 (0)