private GroovyFileType() { super(GroovyLanguage.INSTANCE); FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(this, new EditorHighlighterProvider() { @Override public EditorHighlighter getEditorHighlighter(@Nullable Project project, @NotNull FileType fileType, @Nullable VirtualFile virtualFile, @NotNull EditorColorsScheme colors) { return new GroovyEditorHighlighter(colors); } }); GROOVY_FILE_TYPES.add(this); }
private GroovyFileType() { super(new GroovyLanguage()); FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(this, new EditorHighlighterProvider() { @Override public EditorHighlighter getEditorHighlighter(@Nullable Project project, @NotNull FileType fileType, @Nullable VirtualFile virtualFile, @NotNull EditorColorsScheme colors) { return new GroovyEditorHighlighter(colors); } }); }
private LatteFileType() { super(LatteLanguage.INSTANCE); FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(this, new EditorHighlighterProvider() { public EditorHighlighter getEditorHighlighter(@Nullable Project project, @NotNull FileType fileType, @Nullable VirtualFile virtualFile, @NotNull EditorColorsScheme colors) { return new LatteEditorHighlighter(project, virtualFile,colors); } }); }
private VtlFileType() { super(VtlLanguage.INSTANCE); FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(this, new EditorHighlighterProvider() { @Override public EditorHighlighter getEditorHighlighter(@Nullable Project project, @NotNull FileType fileType, @Nullable VirtualFile virtualFile, @NotNull EditorColorsScheme colors) { return new VtlEditorHighlighter(project, virtualFile, colors); } }); }
private DustFileType() { super(DustLanguage.INSTANCE); // register highlighter - lazy singleton factory FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(this, new EditorHighlighterProvider() { public EditorHighlighter getEditorHighlighter(@Nullable Project project, @NotNull FileType fileType, @Nullable VirtualFile virtualFile, @NotNull EditorColorsScheme editorColorsScheme) { return new DustLayeredSyntaxHighlighter(project, virtualFile, editorColorsScheme); } }); }