From 42cc33949b2114de8247d6319e1af863a28a47a2 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Wed, 29 May 2024 23:48:40 -0400 Subject: [PATCH] Bump line number after syntax errors For consistency with other errors --- M2/Macaulay2/d/interp.dd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/M2/Macaulay2/d/interp.dd b/M2/Macaulay2/d/interp.dd index a0ebe07f765..bab35db17a4 100644 --- a/M2/Macaulay2/d/interp.dd +++ b/M2/Macaulay2/d/interp.dd @@ -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 (