From adfc19522873e01d1ebfc9a55943e49f2c6c4ea8 Mon Sep 17 00:00:00 2001 From: Mahrud Sayrafi Date: Tue, 27 Aug 2024 02:35:35 +0200 Subject: [PATCH] wip: adjusted focus position of different clauses --- M2/Macaulay2/d/convertr.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/M2/Macaulay2/d/convertr.d b/M2/Macaulay2/d/convertr.d index eb93cc9492..f9f0e827a3 100644 --- a/M2/Macaulay2/d/convertr.d +++ b/M2/Macaulay2/d/convertr.d @@ -183,8 +183,8 @@ export convert0(e:ParseTree):Code := ( else if n.newinitializer == dummyTree then Code(newOfCode( convert(n.newclass), unseq(c:=convert0(n.newparent)), combinePositionR(n.newToken.position, codePosition(c)))) else Code(newOfFromCode(convert(n.newclass), convert(n.newparent), unseq(c:=convert0(n.newinitializer)), combinePositionR(n.newToken.position, codePosition(c))))) - is i:IfThen do Code(ifCode(convert(i.predicate), unseq(c:=convert0(i.thenClause)), NullCode, combinePositionR(i.ifToken.position, codePosition(c)))) - is i:IfThenElse do Code(ifCode(convert(i.predicate), convert(i.thenClause), unseq(c:=convert0(i.elseClause)), combinePositionR(i.ifToken.position, codePosition(c)))) + is i:IfThen do Code(ifCode(convert(i.predicate), unseq(c:=convert0(i.thenClause)), NullCode, combinePositionL(i.ifToken.position, codePosition(c)))) + is i:IfThenElse do Code(ifCode(convert(i.predicate), convert(i.thenClause), unseq(c:=convert0(i.elseClause)), combinePositionL(i.ifToken.position, codePosition(c)))) is token:Token do ( var := token.entry; wrd := token.word;