mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 11:44:36 +00:00
AS3 p-code Popup docs correctly displayed for instructions with labels in front of them
This commit is contained in:
@@ -599,8 +599,9 @@ public class ASMSourceEditorPane extends DebuggableEditorPane implements CaretLi
|
||||
if (curLine == null) {
|
||||
return;
|
||||
}
|
||||
curLine = curLine.trim();
|
||||
//strip labels, e.g. ofs123:pushint 25
|
||||
if (curLine.matches("^\\p{L}+:")) {
|
||||
if (curLine.matches("\\p{L}[\\p{L}0-9]*:.*")) {
|
||||
curLine = curLine.substring(curLine.indexOf(':') + 1).trim();
|
||||
}
|
||||
|
||||
@@ -617,7 +618,6 @@ public class ASMSourceEditorPane extends DebuggableEditorPane implements CaretLi
|
||||
if (loc != null) {
|
||||
SwingUtilities.convertPointToScreen(loc, this);
|
||||
}
|
||||
|
||||
if (insNameToDef.containsKey(insName)) {
|
||||
fireDocs("instruction." + insName, As3PCodeDocs.getDocsForIns(insName, false, true, true), loc);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user