some diagnostics for IDEA-91650 Threadlock

This commit is contained in:
peter
2012-09-18 18:39:33 +04:00
parent a5fcff9394
commit 5f6c59565b
@@ -77,6 +77,9 @@ public class AbstractCustomLexer extends LexerBase {
for (TokenParser tokenParser : myTokenParsers) {
if (tokenParser.hasToken(myPosition)) {
tokenParser.getTokenInfo(myCurrentToken);
if (myCurrentToken.getEnd() <= myCurrentToken.getStart()) {
throw new AssertionError(tokenParser);
}
tokenFound = true;
break;
}