Skip to content

Commit

Permalink
fix: not giving location length
Browse files Browse the repository at this point in the history
  • Loading branch information
jumanji144 committed Dec 15, 2023
1 parent f78afab commit a5b7c79
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public void throwError(Error error) {

public void throwEofError(String expected) {
if (latest == null) {
throwError(new Error("Expected '" + expected + "' but got EOF", new Location(-1, -1, "")));
throwError(new Error("Expected '" + expected + "' but got EOF", new Location(-1, -1, 0, "")));
return;
}
throwError(new Error("Expected '" + expected + "' but got EOF", latest.location()));
Expand Down

0 comments on commit a5b7c79

Please sign in to comment.