This commit is contained in:
SuspiciousActivity committed 2021-03-09 18:24:07 +01:00
1 parent b2267947c8
commit bc0ec73071
20 files changed
+277 -437

No files matched your search

@@ -102,7 +102,8 @@ class DefaultTokenFactory implements TokenFactory {
@Override
public TokenImpl createToken(final char[] line, final int beg, final int end, final int startOffset,
final int type) {
// if(tokenList.length - 1 > currentFreeToken) return null;
// if (tokenList.length - 1 > currentFreeToken)
// return null;
TokenImpl token = tokenList[currentFreeToken];
token.set(line, beg, end, startOffset, type);
currentFreeToken++;
@@ -108,7 +108,8 @@ public abstract class TokenMakerBase implements TokenMaker {
currentToken = firstToken; // previous token is still null.
} else {
TokenImpl next = tokenFactory.createToken(array, start, end, startOffset, tokenType);
if(currentToken == null || next == null ) return;
if (currentToken == null || next == null)
return;
currentToken.setNextToken(next);
previousToken = currentToken;
currentToken = next;
@@ -3184,9 +3184,8 @@ public class JavaTokenMaker extends AbstractJFlexCTokenMaker {
return null;
}
} else {
//zzScanError(ZZ_NO_MATCH);
// zzScanError(ZZ_NO_MATCH);
return null;
}
}
}