mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 05:19:25 +02: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;
|
||||
ReadNextAtom;
|
||||
end;
|
||||
AtomIsIdentifier(true);
|
||||
if not AtomIsIdentifier(false) then exit;
|
||||
ReadNextAtom;
|
||||
if CurPos.Flag=cafEdgedBracketOpen then begin
|
||||
ReadTilBracketClose(true);
|
||||
ReadNextAtom;
|
||||
end;
|
||||
if CurPos.Flag in [cafSemicolon,cafEND] then exit;
|
||||
if not (CurPos.Flag=cafColon) then
|
||||
RaiseCharExpectedButAtomFound(':');
|
||||
if CurPos.Flag<>cafColon then exit;
|
||||
ReadNextAtom;
|
||||
Result:=CurPos.Flag=cafWord;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user