From 53af2ae6bd16c61c26b1ae98dac811afdc9621dd Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Tue, 4 Jun 2024 12:46:45 -0400 Subject: [PATCH] Bump line number after token errors --- M2/Macaulay2/d/interp.dd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/M2/Macaulay2/d/interp.dd b/M2/Macaulay2/d/interp.dd index 81b9abbb85a..3aabc8f672e 100644 --- a/M2/Macaulay2/d/interp.dd +++ b/M2/Macaulay2/d/interp.dd @@ -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 (