AS3 highlighter - highlight namespaces and imports

This commit is contained in:
Jindra Petřík
2025-05-30 18:13:50 +02:00
parent 3c0db47094
commit 082d618bc2
4 changed files with 98 additions and 20 deletions
@@ -396,11 +396,13 @@ public class VariableMarker implements SyntaxComponent, CaretListener, PropertyC
pane.setCursor(Cursor.getDefaultCursor());
}
} else {
lastUnderlined = null;
MyMarkers.removeMarkers(pane, underLinePainter);
MyMarkers.removeMarkers(pane, underLineMarkOccurencesPainter);
removeMarkers();
markTokenAt(pane.getCaretPosition());
if (lastUnderlined != null) {
lastUnderlined = null;
MyMarkers.removeMarkers(pane, underLinePainter);
MyMarkers.removeMarkers(pane, underLineMarkOccurencesPainter);
removeMarkers();
markTokenAt(pane.getCaretPosition());
}
pane.setCursor(Cursor.getDefaultCursor());
}
}