1 package com
.intellij
.codeInsight
.daemon
.impl
;
3 import com
.intellij
.codeHighlighting
.Pass
;
4 import com
.intellij
.codeHighlighting
.TextEditorHighlightingPass
;
5 import com
.intellij
.codeHighlighting
.TextEditorHighlightingPassFactory
;
6 import com
.intellij
.codeHighlighting
.TextEditorHighlightingPassRegistrar
;
7 import com
.intellij
.openapi
.components
.AbstractProjectComponent
;
8 import com
.intellij
.openapi
.editor
.Editor
;
9 import com
.intellij
.openapi
.project
.Project
;
10 import com
.intellij
.psi
.PsiFile
;
11 import org
.jetbrains
.annotations
.NotNull
;
16 public class IdentifierHighlighterPassFactory
extends AbstractProjectComponent
implements TextEditorHighlightingPassFactory
{
17 public IdentifierHighlighterPassFactory(Project project
, TextEditorHighlightingPassRegistrar highlightingPassRegistrar
) {
19 highlightingPassRegistrar
.registerTextEditorHighlightingPass(this, new int[]{
24 public TextEditorHighlightingPass
createHighlightingPass(@NotNull final PsiFile file
, @NotNull final Editor editor
) {
25 return new IdentifierHighlighterPass(file
.getProject(), file
, editor
);