Skip to content

Commit 7ba0f60

Browse files
committed
Fix var parsing with metadata
1 parent 4f7c405 commit 7ba0f60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hscript/Parser.hx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,9 @@ class Parser {
605605
switch (tk)
606606
{
607607
case TOp("="): e = parseExpr();
608-
case TComma | TSemicolon: push(tk);
609-
default: unexpected(tk);
608+
case TOp(_): unexpected(tk);
609+
// TComma | TSemicolon | TMeta should be enough? but would need more testing
610+
default: push(tk);
610611
}
611612

612613
mk(EVar(ident,t,e),p1,(e == null) ? tokenMax : pmax(e));

0 commit comments

Comments
 (0)