mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 02:55:55 +02:00
codetools: start ctnWithStatement right behind do
git-svn-id: trunk@50263 -
This commit is contained in:
parent
fa277e1eb3
commit
ab78cd25a0
@ -3030,10 +3030,14 @@ end;
|
||||
|
||||
function TPascalParserTool.ReadTilVariableEnd(
|
||||
ExceptionOnError, WithAsOperator: boolean): boolean;
|
||||
{ Examples:
|
||||
{ After reading CurPos is at atom behind variable.
|
||||
|
||||
Examples:
|
||||
A
|
||||
A^
|
||||
A.B^.C[...].D(...).E
|
||||
(...).A
|
||||
T(...).A
|
||||
@B
|
||||
inherited A
|
||||
A as B
|
||||
@ -3171,11 +3175,12 @@ begin
|
||||
end;
|
||||
end;
|
||||
// read statement
|
||||
ReadNextAtom;
|
||||
if CreateNodes then begin
|
||||
CreateChildNode;
|
||||
CurNode.StartPos:=CurPos.EndPos;
|
||||
CurNode.Desc:=ctnWithStatement;
|
||||
end;
|
||||
ReadNextAtom;
|
||||
Result:=ReadTilStatementEnd(ExceptionOnError,CreateNodes);
|
||||
CloseNodes;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user