mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
73708 - [Scanner] OLRE doesn't exit scanner
This commit is contained in:
parent
9e051b52c2
commit
a6f4bef6ba
1 changed files with 6 additions and 0 deletions
|
@ -365,6 +365,9 @@ public class Scanner2 implements IScanner, IScannerData {
|
||||||
}
|
}
|
||||||
catch( Exception e )
|
catch( Exception e )
|
||||||
{
|
{
|
||||||
|
if( e instanceof OffsetLimitReachedException )
|
||||||
|
throw (OffsetLimitReachedException) e;
|
||||||
|
|
||||||
exception = true;
|
exception = true;
|
||||||
errorHandle();
|
errorHandle();
|
||||||
}
|
}
|
||||||
|
@ -396,6 +399,9 @@ public class Scanner2 implements IScanner, IScannerData {
|
||||||
}
|
}
|
||||||
catch( Exception e )
|
catch( Exception e )
|
||||||
{
|
{
|
||||||
|
if( e instanceof OffsetLimitReachedException )
|
||||||
|
throw (OffsetLimitReachedException) e;
|
||||||
|
|
||||||
nextToken = null;
|
nextToken = null;
|
||||||
exception = true;
|
exception = true;
|
||||||
errorHandle();
|
errorHandle();
|
||||||
|
|
Loading…
Add table
Reference in a new issue