codetools: referenceto: fixed endpos

git-svn-id: trunk@54637 -
This commit is contained in:
mattias 2017-04-19 10:34:54 +00:00
parent 9a0ddd60ef
commit 0236e179c3

View File

@ -4659,6 +4659,7 @@ begin
if (not UpAtomIs('PROCEDURE')) and (not UpAtomIs('FUNCTION')) then
SaveRaiseStringExpectedButAtomFound('"procedure"');
Result:=KeyWordFuncTypeProc;
CurNode.EndPos:=CurPos.StartPos;
EndChildNode;
end else begin
Result:=KeyWordFuncTypeDefault;