codetools: identifier completion: fixed ilcfNeedsDo when as is next token, bug #30703

git-svn-id: trunk@53115 -
This commit is contained in:
mattias 2016-10-14 18:11:56 +00:00
parent 261d36c0b3
commit 2e697531df

View File

@ -2846,6 +2846,7 @@ begin
// check missing 'do' after 'with'
if CurrentIdentifierList.StartUpAtomInFrontIs('WITH')
and (not CurrentIdentifierList.StartUpAtomBehindIs('DO'))
and (not CurrentIdentifierList.StartUpAtomBehindIs('AS'))
and (CurrentIdentifierList.StartBracketLvl=0)
and (not (CurrentIdentifierList.StartAtomBehind.Flag in
[cafComma,cafPoint,cafRoundBracketOpen,cafEdgedBracketOpen]))