codetools: identifier completion: ilcfNeedsDo check for in middle of statement

git-svn-id: trunk@36992 -
This commit is contained in:
mattias 2012-04-23 19:35:20 +00:00
parent 15f4afc429
commit 0f2bb9b9f9

View File

@ -2367,8 +2367,12 @@ begin
end;
end;
if CurrentIdentifierList.StartUpAtomInFrontIs('WITH')
and (CurrentIdentifierList.StartAtomBehind.Flag<>cafComma)
and (not CurrentIdentifierList.StartUpAtomBehindIs('DO')) then
and (not CurrentIdentifierList.StartUpAtomBehindIs('DO'))
and (CurrentIdentifierList.StartBracketLvl=0)
and (not (CurrentIdentifierList.StartAtomBehind.Flag in
[cafComma,cafPoint,cafRoundBracketOpen,cafEdgedBracketOpen]))
and (not CurrentIdentifierList.StartUpAtomBehindIs('^'))
then
CurrentIdentifierList.ContextFlags:=
CurrentIdentifierList.ContextFlags+[ilcfNeedsDo];
end else begin