codetools: fixed endless loop ExtractProcHead

git-svn-id: trunk@26967 -
This commit is contained in:
mattias 2010-08-01 22:10:44 +00:00
parent 121d88afc3
commit fd6b0bde63

View File

@ -488,7 +488,7 @@ begin
ExtractNextAtom(not (phpWithoutSemicolon in Attr),Attr); ExtractNextAtom(not (phpWithoutSemicolon in Attr),Attr);
// read specifiers // read specifiers
if [phpWithCallingSpecs,phpWithProcModifiers]*Attr<>[] then begin if [phpWithCallingSpecs,phpWithProcModifiers]*Attr<>[] then begin
while (CurPos.StartPos<=ProcNode.FirstChild.EndPos) do begin while (CurPos.StartPos<ProcNode.FirstChild.EndPos) do begin
if CurPos.Flag=cafSemicolon then begin if CurPos.Flag=cafSemicolon then begin
ExtractNextAtom(phpWithProcModifiers in Attr,Attr); ExtractNextAtom(phpWithProcModifiers in Attr,Attr);
end else begin end else begin