Package org.rust.devkt.lang.doc.lexer
Class _RustDocHighlightingLexer
java.lang.Object
org.rust.devkt.lang.doc.lexer._RustDocHighlightingLexer
- All Implemented Interfaces:
com.intellij.lexer.FlexLexer
This class is a scanner generated by
JFlex 1.7.0
from the specification file RustDocHighlightingLexer.flex
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.intellij.lexer.FlexLexer
com.intellij.lexer.FlexLexer.Token -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intThis character denotes the end of filestatic final intlexical states -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.intellij.psi.tree.IElementTypeadvance()Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.final intfinal intvoidreset(CharSequence buffer, int start, int end, int initialState) final voidyybegin(int newState) Enters a new lexical statefinal charyycharat(int pos) Returns the character at positionposfrom the matched text.final intyylength()Returns the length of the matched text region.voidyypushback(int number) Pushes the specified amount of characters back into the input stream.final intyystate()Returns the current lexical state.final CharSequenceyytext()Returns the text matched by the current regular expression.static intZZ_CMAP(int ch) Translates characters to character classes Chosen bits are [8, 6, 7] Total runtime size is 1040 bytesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.intellij.lexer.FlexLexer
advanceUnchecked, allTheWayDown
-
Field Details
-
YYEOF
public static final int YYEOFThis character denotes the end of file- See Also:
-
YYINITIAL
public static final int YYINITIALlexical states- See Also:
-
IN_BLOCK
public static final int IN_BLOCK- See Also:
-
IN_EOL
public static final int IN_EOL- See Also:
-
IN_DOC_DATA
public static final int IN_DOC_DATA- See Also:
-
IN_DOC_DATA_DEEP
public static final int IN_DOC_DATA_DEEP- See Also:
-
IN_CODE_FENCE
public static final int IN_CODE_FENCE- See Also:
-
-
Constructor Details
-
_RustDocHighlightingLexer
Creates a new scanner- Parameters:
in- the java.io.Reader to read input from.
-
-
Method Details
-
ZZ_CMAP
public static int ZZ_CMAP(int ch) Translates characters to character classes Chosen bits are [8, 6, 7] Total runtime size is 1040 bytes -
getTokenStart
public final int getTokenStart()- Specified by:
getTokenStartin interfacecom.intellij.lexer.FlexLexer
-
getTokenEnd
public final int getTokenEnd()- Specified by:
getTokenEndin interfacecom.intellij.lexer.FlexLexer
-
reset
- Specified by:
resetin interfacecom.intellij.lexer.FlexLexer
-
yystate
public final int yystate()Returns the current lexical state.- Specified by:
yystatein interfacecom.intellij.lexer.FlexLexer
-
yybegin
public final void yybegin(int newState) Enters a new lexical state- Specified by:
yybeginin interfacecom.intellij.lexer.FlexLexer- Parameters:
newState- the new lexical state
-
yytext
Returns the text matched by the current regular expression. -
yycharat
public final char yycharat(int pos) Returns the character at positionposfrom the matched text. It is equivalent to yytext().charAt(pos), but faster- Parameters:
pos- the position of the character to fetch. A value from 0 to yylength()-1.- Returns:
- the character at position pos
-
yylength
public final int yylength()Returns the length of the matched text region. -
yypushback
public void yypushback(int number) Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method- Parameters:
number- the number of characters to be read again. This number must not be greater than yylength()!
-
advance
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.- Specified by:
advancein interfacecom.intellij.lexer.FlexLexer- Returns:
- the next token
- Throws:
IOException- if any I/O-Error occurs
-