From f0c27bcacf82ddbcb48c302346a54822255ae619 Mon Sep 17 00:00:00 2001 From: Rob Greene Date: Fri, 13 Jul 2018 18:58:13 -0500 Subject: [PATCH] Fixup for renumbering; THEN should not trigger multiple number alterations. --- .../bastools/api/visitors/ReassignmentVisitor.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/src/main/java/io/github/applecommander/bastools/api/visitors/ReassignmentVisitor.java b/api/src/main/java/io/github/applecommander/bastools/api/visitors/ReassignmentVisitor.java index 044b340..1aacdab 100644 --- a/api/src/main/java/io/github/applecommander/bastools/api/visitors/ReassignmentVisitor.java +++ b/api/src/main/java/io/github/applecommander/bastools/api/visitors/ReassignmentVisitor.java @@ -67,8 +67,7 @@ public class ReassignmentVisitor implements Visitor { next = t.keyword == ApplesoftKeyword.GOSUB || t.keyword == ApplesoftKeyword.GOTO || t.keyword == ApplesoftKeyword.THEN || t.keyword == ApplesoftKeyword.RUN || t.keyword == ApplesoftKeyword.LIST; - multiple |= t.keyword == ApplesoftKeyword.LIST || t.keyword == ApplesoftKeyword.ON - || t.keyword == ApplesoftKeyword.THEN; + multiple |= t.keyword == ApplesoftKeyword.LIST || t.keyword == ApplesoftKeyword.ON; } newStatement.tokens.add(newToken); }