mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-15 13:22:10 +00:00
AS3: Fixed hilighting instructions with exceptions
This commit is contained in:
@@ -103,17 +103,20 @@ public class ASMSourceEditorPane extends JEditorPane {
|
||||
int dot = -2;
|
||||
for (int i = 0; i < text.length(); i++) {
|
||||
if (text.charAt(i) == '\n') {
|
||||
if (!((i > 0) && (text.charAt(i - 1) == ':')))
|
||||
instrCount++;
|
||||
|
||||
lineCnt++;
|
||||
if (instrCount == pos) {
|
||||
lineStart = i;
|
||||
dot = lineCnt;
|
||||
lineEnd=i;
|
||||
String ins=text.substring(lineStart,lineEnd).trim();
|
||||
if (!((i > 0) && (text.charAt(i - 1) == ':')))
|
||||
{
|
||||
if(!ins.startsWith("exception ")){
|
||||
instrCount++;
|
||||
}
|
||||
}
|
||||
if (lineCnt == dot + 1) {
|
||||
lineEnd = i;
|
||||
if (instrCount == pos+1) {
|
||||
break;
|
||||
}
|
||||
lineStart = i;
|
||||
}
|
||||
}
|
||||
if (lineCnt == -1) {
|
||||
|
||||
Reference in New Issue
Block a user