public interface MultiCharQuoteHandler extends QuoteHandler
| Modifier and Type | Method and Description |
|---|---|
java.lang.CharSequence |
getClosingQuote(HighlighterIterator iterator,
int offset)
Returns a closing quote for an opening quote placed immediately before offset, or
null when there is no matching quote. |
default void |
insertClosingQuote(Editor editor,
int offset,
java.lang.CharSequence closingQuote)
Should insert the
closingQuote returned from getClosingQuote(HighlighterIterator, int) into the document. |
default void |
insertClosingQuote(Editor editor,
int offset,
PsiFile file,
java.lang.CharSequence closingQuote)
Should insert the
closingQuote returned from getClosingQuote(HighlighterIterator, int) into the document. |
hasNonClosedLiteral, isClosingQuote, isInsideLiteral, isOpeningQuotejava.lang.CharSequence getClosingQuote(HighlighterIterator iterator, int offset)
null when there is no matching quote.default void insertClosingQuote(Editor editor, int offset, PsiFile file, java.lang.CharSequence closingQuote)
closingQuote returned from getClosingQuote(HighlighterIterator, int) into the document.
Override this method for languages with multi-root PSI.default void insertClosingQuote(Editor editor, int offset, java.lang.CharSequence closingQuote)
closingQuote returned from getClosingQuote(HighlighterIterator, int) into the document.
Override this method for languages with single-root PSI.