#1594 Option to disable AS3 P-code indentation, label on separate line

This commit is contained in:
Jindra Petřík
2021-02-11 12:34:46 +01:00
parent 66b0d0bb13
commit ac15728b9d
7 changed files with 121 additions and 17 deletions
@@ -124,7 +124,10 @@ public class ASMSourceEditorPane extends DebuggableEditorPane implements CaretLi
MethodBody body = abc.bodies.get(bodyIndex);
abc.bodies.get(bodyIndex).getCode().toASMSource(abc, abc.constants, abc.method_info.get(body.method_info), body, exportMode, writer);
if (trait != null && exportMode != ScriptExportMode.AS && exportMode != ScriptExportMode.AS_METHOD_STUBS) {
writer.unindent().appendNoHilight("end ; trait").newLine();
if (Configuration.indentAs3PCode.get()) {
writer.unindent();
}
writer.appendNoHilight("end ; trait").newLine();
}
return new HighlightedText(writer);
}