use of com.intellij.openapi.editor.ex.util.LayeredHighlighterIterator in project intellij-community by JetBrains.
the class SyntaxHighlighterOverEditorHighlighter method resetPosition.
public void resetPosition(int startOffset) {
if (lexer instanceof LexerEditorHighlighterLexer) {
((LexerEditorHighlighterLexer) lexer).resetPosition(startOffset);
HighlighterIterator iterator = ((LexerEditorHighlighterLexer) lexer).getHighlighterIterator();
if (iterator instanceof LayeredHighlighterIterator) {
layeredHighlighterIterator = (LayeredHighlighterIterator) iterator;
} else {
layeredHighlighterIterator = null;
}
} else {
CharSequence text = lexer.getBufferSequence();
lexer.start(text, startOffset, text.length());
}
}
Aggregations