JFlex: regen all lexers

This commit is contained in:
Gregory.Shrago
2016-05-11 22:19:07 +03:00
parent 5e0f06d0ad
commit 9bfe6eef12
22 changed files with 1653 additions and 1752 deletions

View File

@@ -27,7 +27,7 @@ import com.intellij.lexer.FlexLexer;
/**
* This class is a scanner generated by
* <a href="http://www.jflex.de/">JFlex</a> 1.7.0-SNAPSHOT
* from the specification file <tt>/ideadev/tools/lexer/../../community/java/java-impl/src/com/intellij/spi/parsing/_SPILexer.flex</tt>
* from the specification file <tt>_SPILexer.flex</tt>
*/
class _SPILexer implements FlexLexer {
@@ -319,15 +319,9 @@ class _SPILexer implements FlexLexer {
the source of the yytext() string */
private CharSequence zzBuffer = "";
/** this buffer may contains the current text array to be matched when it is cheap to acquire it */
private char[] zzBufferArray;
/** the textposition at the last accepting state */
private int zzMarkedPos;
/** the textposition at the last state to be included in yytext */
private int zzPushbackPos;
/** the current text position in the buffer */
private int zzCurrentPos;
@@ -383,19 +377,17 @@ class _SPILexer implements FlexLexer {
return map;
}
public final int getTokenStart(){
public final int getTokenStart() {
return zzStartRead;
}
public final int getTokenEnd(){
public final int getTokenEnd() {
return getTokenStart() + yylength();
}
public void reset(CharSequence buffer, int start, int end,int initialState){
public void reset(CharSequence buffer, int start, int end, int initialState) {
zzBuffer = buffer;
zzBufferArray = com.intellij.util.text.CharArrayUtil.fromSequenceWithoutCopying(buffer);
zzCurrentPos = zzMarkedPos = zzStartRead = start;
zzPushbackPos = 0;
zzAtEOF = false;
zzAtBOL = true;
zzEndRead = end;
@@ -452,7 +444,7 @@ class _SPILexer implements FlexLexer {
* @return the character at position pos
*/
public final char yycharat(int pos) {
return zzBufferArray != null ? zzBufferArray[zzStartRead+pos]:zzBuffer.charAt(zzStartRead+pos);
return zzBuffer.charAt(zzStartRead+pos);
}
@@ -535,7 +527,6 @@ class _SPILexer implements FlexLexer {
int zzMarkedPosL;
int zzEndReadL = zzEndRead;
CharSequence zzBufferL = zzBuffer;
char[] zzBufferArrayL = zzBufferArray;
char [] zzCMapL = ZZ_CMAP;
int [] zzTransL = ZZ_TRANS;