codetools: read var postfix modifiers without first semicolon, bug #25537

git-svn-id: trunk@43752 -
This commit is contained in:
mattias 2014-01-17 12:54:55 +00:00
parent f8d3895843
commit 27f1cc4c94

View File

@ -3368,9 +3368,10 @@ begin
end else if CurPos.Flag=cafEND then begin
UndoReadNextAtom;
end else begin
// no postfix modifier
// the current atom is not a postfix modifier
if not HasSemicolon then
SaveRaiseCharExpectedButAtomFound(';');
UndoReadNextAtom;
end;
CurNode.EndPos:=CurPos.EndPos;
EndChildNode;