mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
Bug 90015 - Set the offset of the EOC token to max so that it is properly considered to be at the end of the parse.
This commit is contained in:
parent
6e68f25d05
commit
c946e6f846
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ abstract class BaseScanner implements IScanner {
|
|||
|
||||
protected static final char[] VA_ARGS_CHARARRAY = "__VA_ARGS__".toCharArray(); //$NON-NLS-1$
|
||||
|
||||
protected final IToken eocToken = new SimpleToken(IToken.tEOC, 0, null, 0);
|
||||
// The eocToken marks the end of a completion parse.
|
||||
// The offset is set to the max so that it is properly considered at the end of the parse.
|
||||
protected final IToken eocToken = new SimpleToken(IToken.tEOC, Integer.MAX_VALUE, null, Integer.MAX_VALUE);
|
||||
|
||||
/**
|
||||
* @author jcamelon
|
||||
|
|
Loading…
Add table
Reference in a new issue