mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use substFileType to locate highlighter if present
This commit is contained in:
+1
-1
@@ -67,7 +67,7 @@ public class EditorHighlighterFactoryImpl extends EditorHighlighterFactory {
|
||||
LanguageFileType substFileType = substituteFileType(((LanguageFileType)fileType).getLanguage(), vFile, project);
|
||||
if (substFileType != null) {
|
||||
EditorHighlighterProvider provider = FileTypeEditorHighlighterProviders.INSTANCE.forFileType(substFileType);
|
||||
EditorHighlighter editorHighlighter = provider.getEditorHighlighter(project, fileType, vFile, settings);
|
||||
EditorHighlighter editorHighlighter = provider.getEditorHighlighter(project, substFileType, vFile, settings);
|
||||
boolean isPlain = editorHighlighter.getClass() == LexerEditorHighlighter.class &&
|
||||
((LexerEditorHighlighter) editorHighlighter).isPlain();
|
||||
if (!isPlain) {
|
||||
|
||||
Reference in New Issue
Block a user