mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 12:18:03 +02:00
codetools: fixed parsing var w:word platform = 1 platform
git-svn-id: trunk@64692 -
This commit is contained in:
parent
17781940eb
commit
d3ab310266
@ -3532,18 +3532,21 @@ 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
|
||||
if ParentNode.Parent.Desc in AllCodeSections+[ctnProcedure] then begin
|
||||
ReadConstExpr; // read constant
|
||||
end;
|
||||
// optional: hint modifier (fpc allows both places: var w:word platform = 1 platform;)
|
||||
if CurPos.Flag=cafWord then
|
||||
ReadHintModifiers(false);
|
||||
end;
|
||||
end;
|
||||
|
||||
// optional: hint modifier
|
||||
if CurPos.Flag=cafWord then
|
||||
ReadHintModifiers(false);
|
||||
|
||||
HasSemicolon:=false;
|
||||
if CurPos.Flag=cafSemicolon then begin
|
||||
// read ;
|
||||
|
Loading…
Reference in New Issue
Block a user