highlight parameter added

This commit is contained in:
Honfika
2013-08-25 15:17:58 +02:00
parent 1f6d2f0056
commit d1a0c1d463
218 changed files with 622 additions and 621 deletions
@@ -43,7 +43,7 @@ public class WhileItem extends LoopItem implements Block {
}
@Override
public String toString(List<Object> localData) {
public String toString(boolean highlight, List<Object> localData) {
String ret = "";
ret += "loop" + loop.id + ":\r\n";
String expStr = "";
@@ -54,15 +54,15 @@ public class WhileItem extends LoopItem implements Block {
if (!expStr.equals("")) {
expStr += ", ";
}
expStr += expression.get(i).toString(localData);
expStr += expression.get(i).toString(highlight, localData);
}
ret += hilight("while(") + expStr + hilight(")") + "\r\n{\r\n";
ret += hilight("while(", highlight) + expStr + hilight(")", highlight) + "\r\n{\r\n";
for (GraphTargetItem ti : commands) {
if (!ti.isEmpty()) {
ret += ti.toStringSemicoloned(localData) + "\r\n";
ret += ti.toStringSemicoloned(highlight, localData) + "\r\n";
}
}
ret += hilight("}") + "\r\n";
ret += hilight("}", highlight) + "\r\n";
ret += ":loop" + loop.id;
return ret;
}