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:
parent
41053bdaa1
commit
a0577d650d
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue