1
0
Fork 0
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:
Doug Schaefer 2005-04-01 19:53:00 +00:00
parent 6e68f25d05
commit c946e6f846

View file

@ -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