mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 06:09:15 +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(
|
function TPascalParserTool.ReadTilVariableEnd(
|
||||||
ExceptionOnError, WithAsOperator: boolean): boolean;
|
ExceptionOnError, WithAsOperator: boolean): boolean;
|
||||||
{ Examples:
|
{ After reading CurPos is at atom behind variable.
|
||||||
|
|
||||||
|
Examples:
|
||||||
A
|
A
|
||||||
|
A^
|
||||||
A.B^.C[...].D(...).E
|
A.B^.C[...].D(...).E
|
||||||
(...).A
|
(...).A
|
||||||
|
T(...).A
|
||||||
@B
|
@B
|
||||||
inherited A
|
inherited A
|
||||||
A as B
|
A as B
|
||||||
@ -3171,11 +3175,12 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
// read statement
|
// read statement
|
||||||
ReadNextAtom;
|
|
||||||
if CreateNodes then begin
|
if CreateNodes then begin
|
||||||
CreateChildNode;
|
CreateChildNode;
|
||||||
|
CurNode.StartPos:=CurPos.EndPos;
|
||||||
CurNode.Desc:=ctnWithStatement;
|
CurNode.Desc:=ctnWithStatement;
|
||||||
end;
|
end;
|
||||||
|
ReadNextAtom;
|
||||||
Result:=ReadTilStatementEnd(ExceptionOnError,CreateNodes);
|
Result:=ReadTilStatementEnd(ExceptionOnError,CreateNodes);
|
||||||
CloseNodes;
|
CloseNodes;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user