codetools: fixed reading til statement end, bug #7970

git-svn-id: trunk@15208 -
This commit is contained in:
mattias 2008-05-22 15:08:31 +00:00
parent a45d589f57
commit 49291a20cd

View File

@ -2402,8 +2402,9 @@ begin
UndoReadNextAtom; UndoReadNextAtom;
exit; exit;
end; end;
cafSemicolon, cafNone: exit; cafSemicolon: exit;
else else
if CurPos.StartPos>SrcLen then exit;
ReadNextAtom; ReadNextAtom;
end; end;
end; end;