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:
parent
f7566ee272
commit
df814fefe9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue