mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 00:18:21 +02:00
codetools: fixed endless loop ExtractProcHead
git-svn-id: trunk@26967 -
This commit is contained in:
parent
121d88afc3
commit
fd6b0bde63
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user