[#8176] Fixed wrong implementation

This commit is contained in:
lukaseder 2019-01-25 11:11:28 +01:00
parent ceeea784b5
commit 1819ebbd6d

View File

@ -8054,14 +8054,14 @@ final class ParserImpl implements Parser {
if (identifier == null)
return null;
if (parseIf(ctx, '.')) {
// Avoid .. token in indexed for loops:
// FOR i IN identifier1 .. identifier2 LOOP <...> END LOOP;
if (peek(ctx, '.') && !peek(ctx, "..")) {
List<Name> result = new ArrayList<Name>();
result.add(identifier);
do {
while (parseIf(ctx, '.'))
result.add(parseIdentifier(ctx));
}
while (parseIf(ctx, '.'));
return DSL.name(result.toArray(EMPTY_NAME));
}