Skip to content

Commit

Permalink
Bump line number after syntax errors
Browse files Browse the repository at this point in the history
For consistency with other errors
  • Loading branch information
d-torrance committed May 30, 2024
1 parent aa1cd3a commit 42cc339
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions M2/Macaulay2/d/interp.dd
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ readeval4(file:TokenFile,printout:bool,dictionary:Dictionary,returnLastvalue:boo
if debugLevel == 123 then stderr << "-- error during parsing" << endl;
if fileError(file) then return buildErrorPacket(fileErrorMessage(file));
if stopIfError || returnIfError then return buildErrorPacket("--backtrace: parse error--");
bumpLineNumber = true;
file.posFile.line = file.posFile.line + 1;
file.posFile.column = ushort(0);
);
)
else (
Expand Down

0 comments on commit 42cc339

Please sign in to comment.