AS3 highlighter - namespaces go to definition

This commit is contained in:
Jindra Petřík
2025-05-30 19:44:56 +02:00
parent 082d618bc2
commit 7853e5b14c
7 changed files with 153 additions and 28 deletions
@@ -156,7 +156,8 @@ public class UsageFrame extends AppDialog implements MouseListener {
};
Main.getMainFrame().getPanel().setLoadingScrollPosEnabled(false);
if (decompiledTextArea.getClassIndex() == icu.getClassIndex() && abcPanel.abc == newAbc) {
if (decompiledTextArea.getScriptIndex() == icu.getScriptIndex() &&
(decompiledTextArea.getClassIndex() == icu.getClassIndex() || icu.getClassIndex() == -1) && abcPanel.abc == newAbc) {
setTrait.run();
} else {
decompiledTextArea.addScriptListener(setTrait);