Search in sources :

Example 1 with RainbowHighlighter

use of com.intellij.codeHighlighting.RainbowHighlighter in project intellij-community by JetBrains.

the class RainbowVisitor method analyze.

@Override
public boolean analyze(@NotNull PsiFile file, boolean updateWholeFile, @NotNull HighlightInfoHolder holder, @NotNull Runnable action) {
    myHolder = holder;
    myRainbowHighlighter = new RainbowHighlighter(myHolder.getColorsScheme());
    try {
        action.run();
    } finally {
        myHolder = null;
        myRainbowHighlighter = null;
    }
    return true;
}
Also used : RainbowHighlighter(com.intellij.codeHighlighting.RainbowHighlighter)

Aggregations

RainbowHighlighter (com.intellij.codeHighlighting.RainbowHighlighter)1