From 997630492f5ef97219a2893ffb7df51d4b94e068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Thu, 4 Mar 2021 21:38:58 +0100 Subject: [PATCH] Fixed: AS3 - escaping start import --- CHANGELOG.md | 1 + .../com/jpexs/decompiler/flash/abc/types/traits/Trait.java | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d0c1a72b..36c127d3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ All notable changes to this project will be documented in this file. - AS3 direct editation - slot/const default values - #1328 AS1/2/3 direct editation - empty commands (just semicolon) - #1310 AS1/2/3 direct editation - modulo operator precedence +- AS3 - escaping start import ### Removed - #1631 ActiveX Flash component download in windows installer diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/Trait.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/Trait.java index 3271011da..b506a6bf6 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/Trait.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/Trait.java @@ -262,7 +262,11 @@ public abstract class Trait implements Cloneable, Serializable { writer.appendNoHilight(imp.getWithoutLast().toPrintableString(true)); writer.appendNoHilight("."); } - writer.hilightSpecial(IdentifiersDeobfuscation.printIdentifier(true, imp.getLast()), HighlightSpecialType.TYPE_NAME, imp.toRawString()); + if ("*".equals(imp.getLast())){ + writer.appendNoHilight("*"); + }else{ + writer.hilightSpecial(IdentifiersDeobfuscation.printIdentifier(true, imp.getLast()), HighlightSpecialType.TYPE_NAME, imp.toRawString()); + } writer.appendNoHilight(";").newLine(); hasImport = true; }