1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

Patch for Andrew Niefer : Bug 151440 - Content Assist makes Eclipse freeze

This commit is contained in:
John Camelon 2006-09-07 18:15:24 +00:00
parent 41053bdaa1
commit a0577d650d

View file

@ -111,6 +111,10 @@ public class BasicTokenDuple implements ITokenDuple {
if( token.getType() == IToken.tLT ) if( token.getType() == IToken.tLT )
token = TokenFactory.consumeTemplateIdArguments( token, last ); token = TokenFactory.consumeTemplateIdArguments( token, last );
if( token.getType() == IToken.tCOLONCOLON ){ if( token.getType() == IToken.tCOLONCOLON ){
if( startOfSegment == token ){
//an empty segment, prev is not valid (and neither is the code)
prev = null;
}
ITokenDuple d = TokenFactory.createTokenDuple( startOfSegment, ( prev == null ) ? startOfSegment : prev ); ITokenDuple d = TokenFactory.createTokenDuple( startOfSegment, ( prev == null ) ? startOfSegment : prev );
r.add( d ); r.add( d );
startOfSegment = token.getNext(); startOfSegment = token.getNext();