1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +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 )
token = TokenFactory.consumeTemplateIdArguments( token, last );
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 );
r.add( d );
startOfSegment = token.getNext();