mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-09 18:19:33 +01:00
codetools: fixed TPascalReaderTool.MoveCursorToPropType not raising exception
git-svn-id: trunk@25905 -
This commit is contained in:
parent
16af3c13d5
commit
5aed4cd577
@ -906,15 +906,14 @@ begin
|
|||||||
if (not UpAtomIs('PROPERTY')) then exit;
|
if (not UpAtomIs('PROPERTY')) then exit;
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
end;
|
end;
|
||||||
AtomIsIdentifier(true);
|
if not AtomIsIdentifier(false) then exit;
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
if CurPos.Flag=cafEdgedBracketOpen then begin
|
if CurPos.Flag=cafEdgedBracketOpen then begin
|
||||||
ReadTilBracketClose(true);
|
ReadTilBracketClose(true);
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
end;
|
end;
|
||||||
if CurPos.Flag in [cafSemicolon,cafEND] then exit;
|
if CurPos.Flag in [cafSemicolon,cafEND] then exit;
|
||||||
if not (CurPos.Flag=cafColon) then
|
if CurPos.Flag<>cafColon then exit;
|
||||||
RaiseCharExpectedButAtomFound(':');
|
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
Result:=CurPos.Flag=cafWord;
|
Result:=CurPos.Flag=cafWord;
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user