mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-24 08:44:01 +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
2838a8621a
commit
ef148a9ec5
1 changed files with 4 additions and 1 deletions
|
@ -2669,6 +2669,9 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
||||||
while (true) {
|
while (true) {
|
||||||
final int lt1= LT(1);
|
final int lt1= LT(1);
|
||||||
|
|
||||||
|
if (lt1 == IToken.tEOC)
|
||||||
|
throwBacktrack(LA(1));
|
||||||
|
|
||||||
// Ignore passages inside braces (such as for a statement-expression),
|
// Ignore passages inside braces (such as for a statement-expression),
|
||||||
// as they can basically contain tokens of any kind.
|
// as they can basically contain tokens of any kind.
|
||||||
if (lt1 == IToken.tLBRACE) {
|
if (lt1 == IToken.tLBRACE) {
|
||||||
|
@ -2681,7 +2684,7 @@ public abstract class AbstractGNUSourceCodeParser implements ISourceCodeParser {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lt1 == IToken.tEOC || lt1 == terminator)
|
if (lt1 == terminator)
|
||||||
throwBacktrack(LA(1));
|
throwBacktrack(LA(1));
|
||||||
|
|
||||||
consume();
|
consume();
|
||||||
|
|
Loading…
Add table
Reference in a new issue