codetools: fixed parsing var c:word = 1 deprecated, issue #38554

git-svn-id: branches/fixes_2_0@64689 -
This commit is contained in:
mattias 2021-02-28 09:00:03 +00:00
parent 6783976874
commit 6b495d9d5f
2 changed files with 5 additions and 5 deletions

View File

@ -3500,10 +3500,6 @@ begin
end;
end;
// optional: hint modifier
if CurPos.Flag=cafWord then
ReadHintModifiers(false);
if (ParentNode.Desc=ctnVarSection) then begin
// optional: initial value
if CurPos.Flag=cafEqual then
@ -3512,6 +3508,10 @@ begin
end;
end;
// optional: hint modifier
if CurPos.Flag=cafWord then
ReadHintModifiers(false);
HasSemicolon:=false;
if CurPos.Flag=cafSemicolon then begin
// read ;
@ -5461,7 +5461,7 @@ end;
function TPascalParserTool.GetExtraction(InUpperCase: boolean): string;
begin
SetLength(Result,ExtractMemStream.Position);
SetLength(Result{%H-},ExtractMemStream.Position);
ExtractMemStream.Position:=0;
if Result<>'' then
ExtractMemStream.Read(Result[1],length(Result));

Binary file not shown.