Skip to content

Commit

Permalink
Bump line number after token errors
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Jun 4, 2024
1 parent e6ae295 commit 53af2ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions M2/Macaulay2/d/interp.dd
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ readeval4(file:TokenFile,printout:bool,dictionary:Dictionary,returnLastvalue:boo
if fileError(file) then return buildErrorPacket(fileErrorMessage(file));
if stopIfError || returnIfError then return buildErrorPacket("--backtrace: token read error--");
if isatty(file) || file.posFile.file.fulllines then flushToken(file);
file.posFile.line = file.posFile.line + 1;
file.posFile.column = ushort(0);
)
)
else (
Expand Down

0 comments on commit 53af2ae

Please sign in to comment.