Update Parser.hx

forgot to put the "EIgnore" work
This commit is contained in:
Jaime Humberto Macias Bustamante
2025-02-03 20:35:10 -07:00
parent bd0ae3fbe1
commit 270087fc62
+3 -1
View File
@@ -285,13 +285,15 @@ class Parser {
case EReturn(e): e != null && isBlock(e);
case ETry(_, _, _, e): isBlock(e);
case EMeta(_, _, e): isBlock(e);
case EIgnore(skip): skip;
default: false;
}
}
function parseFullExpr( exprs : Array<Expr> ):Void {
var e = parseExpr();
exprs.push(e);
if(!expr(e).match(EIgnore(_)))
exprs.push(e);
var tk = token();
// this is a hack to support var a,b,c; with a single EVar