codetools: support const modifiers not separated with semicolons, bug #30244

git-svn-id: branches/fixes_1_6@52446 -
This commit is contained in:
mattias 2016-06-06 11:56:14 +00:00
parent 736731c7b1
commit d1fb44a761

View File

@ -3515,9 +3515,11 @@ begin
ReadConstant(true,false,[]);
CurNode.EndPos:=CurPos.StartPos;
end;
EndChildNode;
if IsModifier then // support modifiers not separated with semicolons: "faVolumeId = $00000008 platform deprecated;"
continue;
if not (CurPos.Flag in AllowedAtomsBehind) then
SaveRaiseCharExpectedButAtomFound(';');
EndChildNode;
if CurPos.Flag<>cafSemicolon then
break;
ReadNextAtom;