mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-24 22:50:45 +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;
|
int dot = -2;
|
||||||
for (int i = 0; i < text.length(); i++) {
|
for (int i = 0; i < text.length(); i++) {
|
||||||
if (text.charAt(i) == '\n') {
|
if (text.charAt(i) == '\n') {
|
||||||
if (!((i > 0) && (text.charAt(i - 1) == ':')))
|
|
||||||
instrCount++;
|
|
||||||
lineCnt++;
|
lineCnt++;
|
||||||
if (instrCount == pos) {
|
lineEnd=i;
|
||||||
lineStart = i;
|
String ins=text.substring(lineStart,lineEnd).trim();
|
||||||
dot = lineCnt;
|
if (!((i > 0) && (text.charAt(i - 1) == ':')))
|
||||||
|
{
|
||||||
|
if(!ins.startsWith("exception ")){
|
||||||
|
instrCount++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (lineCnt == dot + 1) {
|
if (instrCount == pos+1) {
|
||||||
lineEnd = i;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
lineStart = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (lineCnt == -1) {
|
if (lineCnt == -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user