From cf15065825b8c8a511dc7bd8c52f2ff72b9c413c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 28 Aug 2016 23:50:37 +0200 Subject: [PATCH] AS3 p-code Popup docs correctly displayed for instructions with labels in front of them --- .../jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java b/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java index 78937e352..115d6fa89 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java @@ -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;