mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-CR-59549 review fixes
GitOrigin-RevId: 4ec7266a3d3a439a8e40e5c649a62db4dc8cf2c4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
23247c5fcd
commit
e70610cc7f
+1
-11
@@ -143,17 +143,7 @@ public class IdentifierHighlighterPass extends TextEditorHighlightingPass {
|
||||
private void collectCodeBlockMarkerRanges() {
|
||||
PsiElement contextElement = myFile.findElementAt(
|
||||
TargetElementUtil.adjustOffset(myFile, myEditor.getDocument(), myEditor.getCaretModel().getOffset()));
|
||||
if (contextElement == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (CodeBlockSupportHandler handler : CodeBlockSupportHandler.EP.allForLanguage(contextElement.getLanguage())) {
|
||||
List<TextRange> rangesToHighlight = handler.getCodeBlockMarkerRanges(contextElement);
|
||||
if (!rangesToHighlight.isEmpty()) {
|
||||
myCodeBlockMarkerRanges.addAll(rangesToHighlight);
|
||||
return;
|
||||
}
|
||||
}
|
||||
myCodeBlockMarkerRanges.addAll(CodeBlockSupportHandler.findMarkersRanges(contextElement));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user