1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Really ugly update to make sure the EOC token gets included as a segment in a token duple. This allows completions immediately after the :: in a name.

This commit is contained in:
Doug Schaefer 2005-04-01 16:20:52 +00:00
parent f7566ee272
commit df814fefe9

View file

@ -101,7 +101,7 @@ public class BasicTokenDuple implements ITokenDuple {
for( ;; ){
if( token == last )
break;
if( startOfSegment == last.getNext() )
if( startOfSegment == last.getNext() && startOfSegment.getType() != IToken.tEOC ) // for the EOC token, next points to itself
{
startOfSegment = null;
break;