mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 18:25:40 +02:00
Bug 472950 - Fixed an infinite loop in content assist inside a body of a
lambda. Change-Id: I5194571ba8a88e67e9cc897be463c5e833700000
This commit is contained in:
parent
904d0df63d
commit
3098d1679b
1 changed files with 4 additions and 1 deletions
|
@ -2674,6 +2674,9 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
|||
while (true) {
|
||||
final int lt1= LT(1);
|
||||
|
||||
if (lt1 == IToken.tEOC)
|
||||
throwBacktrack(LA(1));
|
||||
|
||||
// Ignore passages inside braces (such as for a statement-expression),
|
||||
// as they can basically contain tokens of any kind.
|
||||
if (lt1 == IToken.tLBRACE) {
|
||||
|
@ -2686,7 +2689,7 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
|||
continue;
|
||||
}
|
||||
|
||||
if (lt1 == IToken.tEOC || lt1 == terminator)
|
||||
if (lt1 == terminator)
|
||||
throwBacktrack(LA(1));
|
||||
|
||||
consume();
|
||||
|
|
Loading…
Add table
Reference in a new issue