mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 02:49:19 +02:00
codetools: read var postfix modifiers without first semicolon, bug #25537
git-svn-id: trunk@43752 -
This commit is contained in:
parent
f8d3895843
commit
27f1cc4c94
@ -3368,9 +3368,10 @@ begin
|
|||||||
end else if CurPos.Flag=cafEND then begin
|
end else if CurPos.Flag=cafEND then begin
|
||||||
UndoReadNextAtom;
|
UndoReadNextAtom;
|
||||||
end else begin
|
end else begin
|
||||||
// no postfix modifier
|
// the current atom is not a postfix modifier
|
||||||
if not HasSemicolon then
|
if not HasSemicolon then
|
||||||
SaveRaiseCharExpectedButAtomFound(';');
|
SaveRaiseCharExpectedButAtomFound(';');
|
||||||
|
UndoReadNextAtom;
|
||||||
end;
|
end;
|
||||||
CurNode.EndPos:=CurPos.EndPos;
|
CurNode.EndPos:=CurPos.EndPos;
|
||||||
EndChildNode;
|
EndChildNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user