public class HtmlHighlightingLexer extends BaseHtmlLexer
| Modifier and Type | Class and Description |
|---|---|
class |
HtmlHighlightingLexer.ElEmbeddmentHandler |
class |
HtmlHighlightingLexer.XmlEmbeddmentHandler |
BaseHtmlLexer.TokenHandler, BaseHtmlLexer.XmlNameHandler| Modifier and Type | Field and Description |
|---|---|
protected Lexer |
elLexer |
BASE_STATE_MASK, BASE_STATE_SHIFT, caseInsensitive, ourDefaultStyleLanguage, scriptType, seenAttribute, seenContentType, seenScript, seenStyle, seenStylesheetType, seenTag, styleTypemyDelegate| Modifier | Constructor and Description |
|---|---|
|
HtmlHighlightingLexer() |
|
HtmlHighlightingLexer(FileType styleFileType) |
protected |
HtmlHighlightingLexer(Lexer lexer,
boolean caseInsensitive,
FileType styleFileType) |
| Modifier and Type | Method and Description |
|---|---|
void |
advance()
Advances the lexer to the next token.
|
protected Lexer |
createELLexer(Lexer newLexer) |
protected int |
getEmbeddedLexerState(int initialState) |
protected Lexer |
getInlineScriptHighlightingLexer() |
int |
getState()
Returns the current state of the lexer.
|
int |
getTokenEnd()
Returns the end offset of the current token.
|
int |
getTokenStart()
Returns the start offset of the current token.
|
IElementType |
getTokenType()
Returns the token at the current position of the lexer or
null if lexing is finished. |
protected boolean |
isHtmlTagState(int state) |
void |
setHasNoEmbeddments(boolean hasNoEmbeddments) |
void |
start(java.lang.CharSequence buffer,
int startOffset,
int endOffset,
int initialState)
Prepare for lexing character data from
buffer passed. |
endOfTheEmbeddment, findScriptContentProvider, getBaseStateShift, getCurrentScriptElementType, getCurrentStylesheetElementType, getFirstChar, getScriptLanguage, getStyleLanguage, hasSeenAttribute, hasSeenScript, hasSeenStyle, hasSeenTag, isValidAttributeValueTokenType, popScriptStyle, pushScriptStyle, registerHandler, skipToTheEndOfTheEmbeddmentgetBufferEnd, getBufferSequence, getDelegategetCurrentPosition, restoregetTokenSequence, getTokenText, start, startprotected Lexer elLexer
public HtmlHighlightingLexer()
public HtmlHighlightingLexer(FileType styleFileType)
public void start(java.lang.CharSequence buffer,
int startOffset,
int endOffset,
int initialState)
Lexerbuffer passed. Internal lexer state is supposed to be initialState. It is guaranteed
that the value of initialState is the same as returned by Lexer.getState() method of this lexer at condition startOffset=getTokenStart().
This method is used to incrementally re-lex changed characters using lexing data acquired from this particular lexer sometime in the past.start in class BaseHtmlLexerbuffer - character data for lexing.startOffset - offset to start lexing fromendOffset - offset to stop lexing atinitialState - the initial state of the lexer.protected int getEmbeddedLexerState(int initialState)
protected Lexer getInlineScriptHighlightingLexer()
public void advance()
Lexeradvance in class BaseHtmlLexerpublic IElementType getTokenType()
Lexernull if lexing is finished.getTokenType in class DelegateLexerpublic int getTokenStart()
LexergetTokenStart in class DelegateLexerpublic int getTokenEnd()
LexergetTokenEnd in class DelegateLexerpublic int getState()
LexergetState in class BaseHtmlLexerprotected boolean isHtmlTagState(int state)
isHtmlTagState in class BaseHtmlLexerpublic void setHasNoEmbeddments(boolean hasNoEmbeddments)