From 270087fc62428d307bb7b1fb6d9677417d365cb2 Mon Sep 17 00:00:00 2001 From: Jaime Humberto Macias Bustamante Date: Mon, 3 Feb 2025 20:35:10 -0700 Subject: [PATCH] Update Parser.hx forgot to put the "EIgnore" work --- hscript/Parser.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hscript/Parser.hx b/hscript/Parser.hx index b4607b4..0bbea8a 100644 --- a/hscript/Parser.hx +++ b/hscript/Parser.hx @@ -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 ):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