Fixed Slot/const trait proper p-code indentation

This commit is contained in:
Jindra Petřík
2022-12-23 17:02:50 +01:00
parent 3538adedbc
commit cdb84bffb4
2 changed files with 4 additions and 0 deletions
@@ -101,6 +101,9 @@ public class SlotConstTraitDetailPanel extends JPanel implements TraitDetail {
this.trait = trait;
HighlightedTextWriter writer = new HighlightedTextWriter(Configuration.getCodeFormatting(), true);
trait.convertTraitHeader(abc, writer);
if (Configuration.indentAs3PCode.get()) {
writer.unindent();
}
writer.appendNoHilight("end ; trait");
String s = writer.toString();
specialHilights = writer.specialHilights;