mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 22:46:30 +00:00
correct pos on error
This commit is contained in:
parent
2d0e401bf3
commit
0875b447e4
@ -133,7 +133,7 @@ export class Parser {
|
|||||||
return this.expr({ type: "block", stmts, expr }, pos);
|
return this.expr({ type: "block", stmts, expr }, pos);
|
||||||
} else {
|
} else {
|
||||||
this.report("expected ';' or '}'");
|
this.report("expected ';' or '}'");
|
||||||
return this.expr({ type: "error" }, pos);
|
return this.expr({ type: "error" }, this.pos());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user